#210F42#210F42

#210F42 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.0% C 0.091 H 294.3°. Best body text is #FFFFFF at 17.33:1 contrast (WCAG AA passes).

Color values

HEX#210F42
RGBrgb(33, 15, 66)
HSLhsl(261, 63%, 16%)
HSVhsv(261, 77%, 26%)
CMYKcmyk(50%, 77.3%, 0%, 74.1%)
CIE-LABlab(9.47, 23.03, -28.95)
CIE-LCHlch(9.47, 36.99, 308.51°)
OKLaboklab(22.97% 0.0374 -0.0828)
OKLCHoklch(22.97% 0.091 294.3)
XYZxyz(1.7811, 1.0583, 5.2636)
Luminance0.0106 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#210F42 #30420F
analogous
#0F1642 #210F42 #3A0F42
triadic
#210F42 #42210F #0F4221
tetradic
#210F42 #420F16 #30420F #0F423A
square
#210F42 #420F16 #30420F #0F423A
split-complementary
#210F42 #423A0F #16420F
monochromatic
#0C0619 #0C0619 #210F42 #3A1A74 #5326A6

Accessibility & contrast

On white

17.33
#210F42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#210F42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #210F42
17.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##210F42#FFFFFF#000000##FFFFFF
##210F421.0017.331.2117.33
#FFFFFF17.331.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B44
Deuteranopia (green-blind)
#001A41
Tritanopia (blue-blind)
#181C27
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #210f42;
/* rgb */ color: rgb(33, 15, 66);
/* oklch */ color: oklch(23.0% 0.091 294.3);
Tailwind
colors: {
  custom: {
    50: '#604f77',
    500: '#210f42',
    950: '#000000',
  },
}
SCSS
$custom: #210f42;
$custom-light: #604f77;
$custom-dark: #000000;
JSON
{
  "hex": "#210f42",
  "rgb": {
    "r": 33,
    "g": 15,
    "b": 66
  },
  "hsl": {
    "h": 261.176,
    "s": 62.963,
    "l": 15.882
  },
  "oklch": {
    "l": 0.22965,
    "c": 0.09085,
    "h": 294.3
  },
  "luminance": 0.01058
}

Semantic roles & 50–950 ramp

primary
#210F42
secondary
#627C30
accent
#E642AC
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050208
muted
#79787B

Preview Lab

Preview with #210F42

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

Preview Lab → · Contrast checker → · Palette generator →

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