RAL Classic color

RAL 3007 Black red #412227

RAL 3007 Black red is shown here as #412227, a widely published sRGB approximation of the printed swatch. It is a very dark grayish wine in the pink family. In OKLCH it sits at lightness 0.295, chroma 0.048 and hue 10.1°. The nearest CSS named color is black (#000000), ΔE2000 18.8 away.

Relative luminance
0.0241
OKLCH L · C · h
0.295 · 0.048 · 10.1
Best text
White 14.16:1
Hue family
Pink

#412227 color codes

HEX
#412227
RGB
rgb(65, 34, 39)
HSL
hsl(350, 31%, 19%)
OKLCH
oklch(0.295 0.048 10.1)
OKLab
oklab(0.295 0.047 0.008)
CIELAB (D65)
L* 17.53, a* 15.55, b* 3.16
XYZ (D65)
X 3.12, Y 2.41, Z 2.22
CMYK (naive)
cmyk(0%, 48%, 40%, 75%)

CIELAB and XYZ use the D65 white point; CSS lab() uses D50, so paste the OKLCH or HEX value into stylesheets. CMYK here is a plain formula with no press profile.

RAL and RAL Classic are trademarks of RAL gGmbH, which this site is not affiliated with. The sRGB value is an approximation of the printed swatch; check a physical RAL color card before you specify a paint.

Legibility

Contrast: is #412227 accessible?

White text on it reaches 14.16:1, passing AAA. Black text fails at 1.48:1.

WCAG 2 gives the same ratio whichever color is the text; APCA does not, so its Lc changes sign and size with polarity.

Open the Contrast System
  • Black text on it

    1.48:1

    • AA fails
    • AA large fails
    • AAA fails
    • APCA Lc 0

    Text is here, unreadable at 1.48:1

  • White text on it

    14.16:1

    • AA passes
    • AA large passes
    • AAA passes
    • APCA Lc −103
  • As text on black

    1.48:1

    • AA fails
    • AA large fails
    • AAA fails
    • APCA Lc 0

    Text is here, unreadable at 1.48:1

  • As text on white

    14.16:1

    • AA passes
    • AA large passes
    • AAA passes
    • APCA Lc +100

Nearest versions that pass 4.5:1

  • For text on white

    #412227 14.16:1

    It already reaches 14.16:1 on white, so no change is needed.

  • For text on black

    #906B6F 4.51:1

    Lightening its OKLCH lightness from 0.30 to 0.57 reaches 4.51:1 on black, keeping the hue.

Checking another pair? Use the Contrast Checker.

Studio

Adjust #412227 live

Move lightness, chroma and hue in OKLCH, or drag on the map. The map is every lightness and chroma at the current hue: sRGB inside the solid area, Display P3 out to the dashed line.

The studio needs JavaScript.

Scale

Shades and tints of #412227

Eleven OKLCH lightness steps at this hue, each with its contrast against white and black. #412227 sits at step 900.

  1. 50#FFF1F3
    White
    1.09
    Black
    19.12
  2. 100#FFE3E6
    White
    1.20
    Black
    17.38
  3. 200#F2CDD1
    White
    1.45
    Black
    14.42
  4. 300#D9B2B7
    White
    1.90
    Black
    11.00
  5. 400#BD969B
    White
    2.62
    Black
    7.99
  6. 500#A17B7F
    White
    3.71
    Black
    5.65
  7. 600#886368
    White
    5.20
    Black
    4.03
  8. 700#6F4D52
    White
    7.34
    Black
    2.85
  9. 800#54363A
    White
    10.68
    Black
    1.96
  10. 900This color#412227
    White
    14.16
    Black
    1.48
  11. 950#240F12
    White
    18.22
    Black
    1.15

Under each step, white and black text on it; a bold figure passes 4.5:1.

Gamut

How vivid #412227 can get

At its lightness and hue, sRGB reaches OKLCH chroma 0.118; #412227 uses 40% of it. Display P3, which many recent phones and laptops show, reaches 0.134 there: 13% more.

0.00.20.40.60.80.20.40.60.8 460480500520540560580600620
  • sRGB
  • Display P3
  • Rec. 2020
  • Dominant wavelength
OKLCH chroma
0.048
sRGB edge
0.118
Display P3 edge
0.134
Rec. 2020 edge
0.156
Dominant wavelength
Complementary 494 nm
Excitation purity
23%
Chromaticity
x 0.4022, y 0.3114
  • This color#412227
  • Most vivid in sRGB#58001F
  • Most vivid in Display P3oklch(0.295 0.134 10.1)

On a screen without Display P3 the last tile shows the sRGB edge instead.

Use the wider color where screens show it
.accent {
  color: #412227;
}
@media (color-gamut: p3) {
  .accent { color: color(display-p3 0.3307 0 0.1157); }
}

Mixing

Mixing #412227

Each row is the same mix worked out in a different space, with the halfway color at its end. sRGB, which older CSS gradients use, can sag gray or dark in the middle; OKLab keeps the lightness steps even; OKLCH holds chroma and hue as it goes.

White #FFFFFF

  • sRGB50%#A09193
  • OKLab50%#9C898B
  • OKLCH50%#9C898B

Black #000000

  • sRGB50%#211114
  • OKLab50%#130708
  • OKLCH50%#130708

Its complement #053432

  • sRGB50%#232B2D
  • OKLab50%#2D2C2D
  • OKLCH50%#282A44
In CSS
/* A gradient and a mix, worked out in OKLCH */
background: linear-gradient(in oklch, #412227, white);
color: color-mix(in oklch, #412227 50%, white);

In use

#412227 in an interface

A button, a link, a heading, a focused field, an icon and a chart line in this color, on a light page and a dark one. Each check is a WCAG 2 contrast minimum: 1.4.3 for text, 1.4.11 for the rest.

Light page

  • Button labelText, 4.5:114.16:1 Passes
  • Link and body-size textText, 4.5:114.16:1 Passes
  • Large headingLarge text, 3:114.16:1 Passes
  • Icons, borders and focus ringsNon-text, 3:114.16:1 Passes

Dark page

  • Button labelText, 4.5:114.16:1 Passes
  • Link and body-size textText, 4.5:11.32:1 Fails
  • Large headingLarge text, 3:11.32:1 Fails
  • Icons, borders and focus ringsNon-text, 3:11.32:1 Fails

For text on this page, the nearest shade that passes is #997378 4.52:1

Color vision

How #412227 looks with color blindness

Deuteranopia changes it most, ΔE2000 17.7; tritanopia changes it least, 2.7.

Simulated with Machado et al. (2009) at full severity, in linear light.

Simulate a whole page What each type sees
  • Protanopia

    No working red (long-wavelength) cones

    #272727 ΔE2000 15.4

    Distinct

    Reads as near-black

  • Deuteranopia

    No working green (medium-wavelength) cones

    #2F2D26 ΔE2000 17.7

    Distinct

    Reads as near-black

  • Tritanopia

    No working blue (short-wavelength) cones

    #461F24 ΔE2000 2.7

    Close match

    Reads as very dark muted wine

  • Achromatopsia

    No cone color vision; lightness only

    #2B2B2B ΔE2000 15.3

    Distinct

    Reads as near-black

Pairing check

Checked against its complement, #053432. Their lightness contrast is only 1.04:1, so where hue collapses, add a label, icon or pattern.

VisionThe pairΔE2000Verdict
Normal vision#412227 · #05343235.7Stays distinct
Protanopia#272727 · #3031323.2Easily confused
Deuteranopia#2F2D26 · #2A2C328.6Harder to tell apart
Tritanopia#461F24 · #00363338.9Stays distinct
Achromatopsia#2B2B2B · #2E2E2E1.0Easily confused

Harmony

Color harmonies for #412227

Its complement is #053432, a very dark grayish teal, on the cool side of the wheel.

Hue rotations in OKLCH, mapped into sRGB by trimming chroma so hue and lightness stay put.

Open the Harmony Studio
  • Base#412227
  • Complement#053432

Complementary

Open in Harmony Studio
  • −30°#3D2334
  • Base#412227
  • +30°#41241A
  • Base#412227
  • +120°#253117
  • +240°#192E44
  • Base#412227
  • +150°#143424
  • +210°#08323D

Split-complementary

Open in Harmony Studio

Code

Design tokens

Ready-to-paste tokens in six formats. Rename them to fit your system.

CSS custom property

:root {
  --color-ral-3007: #412227;
}

Tailwind config

// tailwind.config.js
module.exports = {
  theme: {
    extend: {
      colors: {
        'ral-3007': '#412227',
      },
    },
  },
};

Tailwind v4 theme

/* app.css — Tailwind CSS v4 */
@import "tailwindcss";

@theme {
  --color-ral-3007: oklch(0.295 0.048 10.1);
}

Design token (W3C DTCG)

{
  "color": {
    "ral-3007": {
      "$type": "color",
      "$value": {
        "colorSpace": "srgb",
        "components": [0.2549, 0.1333, 0.1529],
        "hex": "#412227"
      },
      "$description": "RAL 3007 Black red (approximate sRGB)"
    }
  }
}

SwiftUI color

import SwiftUI

enum Palette {
    static let ral3007 = Color(.sRGB, red: 0.255, green: 0.133, blue: 0.153, opacity: 1)
}

Jetpack Compose color

import androidx.compose.ui.graphics.Color

object Palette {
    val Ral3007 = Color(0xFF412227)
}

Matches

The nearest match in each system

The closest CSS name, Tailwind shade, RAL Classic paint and Crayola crayon by ΔE2000; under 2 is hard to tell apart side by side. RAL and Crayola values approximate physical colors.

Tools

Open #412227 in the tools

Each opens over this page. More colors live in the Color Library, and every color page is listed on the hub.