RAL Classic color

RAL 4004 Claret violet #641C34

RAL 4004 Claret violet is shown here as #641C34, a widely published sRGB approximation of the printed swatch. It is a dark soft wine in the pink family. In OKLCH it sits at lightness 0.349, chroma 0.105 and hue 4.0°. The nearest CSS named color is maroon (#800000), ΔE2000 18.3 away.

Relative luminance
0.0379
OKLCH L · C · h
0.349 · 0.105 · 4.0
Best text
White 11.94:1
Hue family
Pink

#641C34 color codes

HEX
#641C34
RGB
rgb(100, 28, 52)
HSL
hsl(340, 56%, 25%)
OKLCH
oklch(0.349 0.105 4.0)
OKLab
oklab(0.349 0.105 0.007)
CIELAB (D65)
L* 22.96, a* 34.33, b* 2.70
XYZ (D65)
X 6.29, Y 3.79, Z 3.65
CMYK (naive)
cmyk(0%, 72%, 48%, 61%)

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 #641C34 accessible?

White text on it reaches 11.94:1, passing AAA. Black text fails at 1.75: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.75:1

    • AA fails
    • AA large fails
    • AAA fails
    • APCA Lc +7
  • White text on it

    11.94:1

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

    1.75:1

    • AA fails
    • AA large fails
    • AAA fails
    • APCA Lc 0
  • As text on white

    11.94:1

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

Nearest versions that pass 4.5:1

  • For text on white

    #641C34 11.94:1

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

  • For text on black

    #AC5C71 4.52:1

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

Checking another pair? Use the Contrast Checker.

Studio

Adjust #641C34 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 #641C34

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

  1. 50#FFF1F4
    White
    1.09
    Black
    19.14
  2. 100#FFE3E9
    White
    1.20
    Black
    17.41
  3. 200#FFC6D2
    White
    1.47
    Black
    14.26
  4. 300#F4A3B6
    White
    1.95
    Black
    10.76
  5. 400#D8869A
    White
    2.69
    Black
    7.79
  6. 500#BA6A7F
    White
    3.84
    Black
    5.45
  7. 600#A05368
    White
    5.34
    Black
    3.93
  8. 700#853D51
    White
    7.54
    Black
    2.78
  9. 800This color#641C34
    White
    11.94
    Black
    1.75
  10. 900#4A1024
    White
    15.09
    Black
    1.39
  11. 950#300012
    White
    18.51
    Black
    1.13

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

Gamut

How vivid #641C34 can get

At its lightness and hue, sRGB reaches OKLCH chroma 0.141; #641C34 uses 75% of it. Display P3, which many recent phones and laptops show, reaches 0.159 there: 13% more.

0.00.20.40.60.80.20.40.60.8 460480500520540560580600620
  • sRGB
  • Display P3
  • Rec. 2020
  • Dominant wavelength
OKLCH chroma
0.105
sRGB edge
0.141
Display P3 edge
0.159
Rec. 2020 edge
0.186
Dominant wavelength
Complementary 496 nm
Excitation purity
46%
Chromaticity
x 0.4583, y 0.2760
  • This color#641C34
  • Most vivid in sRGB#6F0032
  • Most vivid in Display P3oklch(0.349 0.159 4.0)

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

Use the wider color where screens show it
.accent {
  color: #641c34;
}
@media (color-gamut: p3) {
  .accent { color: color(display-p3 0.4164 0 0.1908); }
}

Mixing

Mixing #641C34

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%#B28E9A
  • OKLab50%#B48A93
  • OKLCH50%#B48A93

Black #000000

  • sRGB50%#320E1A
  • OKLab50%#22050E
  • OKLCH50%#22050E

Its complement #00453E

  • sRGB50%#323139
  • OKLab50%#453639
  • OKLCH50%#473900
In CSS
/* A gradient and a mix, worked out in OKLCH */
background: linear-gradient(in oklch, #641c34, white);
color: color-mix(in oklch, #641c34 50%, white);

In use

#641C34 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:111.94:1 Passes
  • Link and body-size textText, 4.5:111.94:1 Passes
  • Large headingLarge text, 3:111.94:1 Passes
  • Icons, borders and focus ringsNon-text, 3:111.94:1 Passes

Dark page

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

For text on this page, the nearest shade that passes is #B5657A 4.55:1

Color vision

How #641C34 looks with color blindness

Deuteranopia changes it most, ΔE2000 26.7; tritanopia changes it least, 6.0.

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

    #2B2E35 ΔE2000 23.7

    Distinct

    Reads as dark gray

  • Deuteranopia

    No working green (medium-wavelength) cones

    #3F3C32 ΔE2000 26.7

    Distinct

    Reads as dark gray

  • Tritanopia

    No working blue (short-wavelength) cones

    #6D1226 ΔE2000 6.0

    Noticeable

    Reads as dark soft wine

  • Achromatopsia

    No cone color vision; lightness only

    #373737 ΔE2000 22.9

    Distinct

    Reads as dark gray

Pairing check

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

VisionThe pairΔE2000Verdict
Normal vision#641C34 · #00453E45.9Stays distinct
Protanopia#2B2E35 · #41403E8.3Harder to tell apart
Deuteranopia#3F3C32 · #393A3F9.3Harder to tell apart
Tritanopia#6D1226 · #00474345.6Stays distinct
Achromatopsia#373737 · #3D3D3D2.0Easily confused

Harmony

Color harmonies for #641C34

Its complement is #00453E, a dark muted 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#641C34
  • Complement#00453E

Complementary

Open in Harmony Studio
  • −30°#592151
  • Base#641C34
  • +30°#661F10
  • Base#641C34
  • +120°#314100
  • +240°#003E64
  • Base#641C34
  • +150°#004724
  • +210°#00424E

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-4004: #641c34;
}

Tailwind config

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

Tailwind v4 theme

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

@theme {
  --color-ral-4004: oklch(0.349 0.105 4.0);
}

Design token (W3C DTCG)

{
  "color": {
    "ral-4004": {
      "$type": "color",
      "$value": {
        "colorSpace": "srgb",
        "components": [0.3922, 0.1098, 0.2039],
        "hex": "#641c34"
      },
      "$description": "RAL 4004 Claret violet (approximate sRGB)"
    }
  }
}

SwiftUI color

import SwiftUI

enum Palette {
    static let ral4004 = Color(.sRGB, red: 0.392, green: 0.110, blue: 0.204, opacity: 1)
}

Jetpack Compose color

import androidx.compose.ui.graphics.Color

object Palette {
    val Ral4004 = Color(0xFF641C34)
}

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 #641C34 in the tools

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