#210F40#210F40

#210F40 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.8% C 0.088 H 295.4°. Best body text is #FFFFFF at 17.40:1 contrast (WCAG AA passes).

Color values

HEX#210F40
RGBrgb(33, 15, 64)
HSLhsl(262, 62%, 15%)
HSVhsv(262, 77%, 25%)
CMYKcmyk(48.4%, 76.6%, 0%, 74.9%)
CIE-LABlab(9.28, 22.38, -27.83)
CIE-LCHlch(9.28, 35.72, 308.81°)
OKLaboklab(22.77% 0.0377 -0.0795)
OKLCHoklch(22.77% 0.088 295.4)
XYZxyz(1.7232, 1.0351, 4.9585)
Luminance0.0103 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#210F40 #2E400F
analogous
#0F1540 #210F40 #390F40
triadic
#210F40 #40210F #0F4021
tetradic
#210F40 #400F15 #2E400F #0F4039
square
#210F40 #400F15 #2E400F #0F4039
split-complementary
#210F40 #40390F #15400F
monochromatic
#0D0619 #0D0619 #210F40 #3B1B72 #5426A3

Accessibility & contrast

On white

17.40
#210F40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #210F40
17.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##210F40#FFFFFF#000000##FFFFFF
##210F401.0017.401.2117.40
#FFFFFF17.401.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A41
Deuteranopia (green-blind)
#00193F
Tritanopia (blue-blind)
#191B26
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #210f40;
/* rgb */ color: rgb(33, 15, 64);
/* oklch */ color: oklch(22.8% 0.088 295.4);
Tailwind
colors: {
  custom: {
    50: '#604e75',
    500: '#210f40',
    950: '#000000',
  },
}
SCSS
$custom: #210f40;
$custom-light: #604e75;
$custom-dark: #000000;
JSON
{
  "hex": "#210f40",
  "rgb": {
    "r": 33,
    "g": 15,
    "b": 64
  },
  "hsl": {
    "h": 262.041,
    "s": 62.025,
    "l": 15.49
  },
  "oklch": {
    "l": 0.22772,
    "c": 0.08804,
    "h": 295.4
  },
  "luminance": 0.01035
}

Semantic roles & 50–950 ramp

primary
#210F40
secondary
#5F7A30
accent
#E543A9
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050208
muted
#79787B

Preview Lab

Preview with #210F40

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

Preview Lab → · Contrast checker → · Palette generator →

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