#210D40#210D40

#210D40 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.5% C 0.091 H 296.2°. Best body text is #FFFFFF at 17.56:1 contrast (WCAG AA passes).

Color values

HEX#210D40
RGBrgb(33, 13, 64)
HSLhsl(264, 66%, 15%)
HSVhsv(264, 80%, 25%)
CMYKcmyk(48.4%, 79.7%, 0%, 74.9%)
CIE-LABlab(8.83, 23.62, -28.56)
CIE-LCHlch(8.83, 37.06, 309.59°)
OKLaboklab(22.45% 0.0402 -0.0817)
OKLCHoklch(22.45% 0.091 296.2)
XYZxyz(1.6963, 0.9813, 4.9495)
Luminance0.0098 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#210D40 #2C400D
analogous
#0D1340 #210D40 #3A0D40
triadic
#210D40 #40210D #0D4021
tetradic
#210D40 #400D13 #2C400D #0D403A
square
#210D40 #400D13 #2C400D #0D403A
split-complementary
#210D40 #403A0D #13400D
monochromatic
#0D0519 #0D0519 #210D40 #3B1773 #5522A6

Accessibility & contrast

On white

17.56
#210D40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#210D40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #210D40
17.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##210D40#FFFFFF#000000##FFFFFF
##210D401.0017.561.2017.56
#FFFFFF17.561.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001942
Deuteranopia (green-blind)
#00183F
Tritanopia (blue-blind)
#191A25
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #210d40;
/* rgb */ color: rgb(33, 13, 64);
/* oklch */ color: oklch(22.5% 0.091 296.2);
Tailwind
colors: {
  custom: {
    50: '#604d75',
    500: '#210d40',
    950: '#000000',
  },
}
SCSS
$custom: #210d40;
$custom-light: #604d75;
$custom-dark: #000000;
JSON
{
  "hex": "#210d40",
  "rgb": {
    "r": 33,
    "g": 13,
    "b": 64
  },
  "hsl": {
    "h": 263.529,
    "s": 66.234,
    "l": 15.098
  },
  "oklch": {
    "l": 0.22454,
    "c": 0.09101,
    "h": 296.2
  },
  "luminance": 0.00981
}

Semantic roles & 50–950 ramp

primary
#210D40
secondary
#5D7C2D
accent
#E93FA6
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050108
muted
#79777B

Preview Lab

Preview with #210D40

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#210D40 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva