#210F31#210F31

#210F31 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.4% C 0.066 H 306.0°. Best body text is #FFFFFF at 17.84:1 contrast (WCAG AA passes).

Color values

HEX#210F31
RGBrgb(33, 15, 49)
HSLhsl(272, 53%, 13%)
HSVhsv(272, 69%, 19%)
CMYKcmyk(32.7%, 69.4%, 0%, 80.8%)
CIE-LABlab(8.01, 17.67, -19.05)
CIE-LCHlch(8.01, 25.98, 312.85°)
OKLaboklab(21.45% 0.039 -0.0537)
OKLCHoklch(21.45% 0.066 306)
XYZxyz(1.3523, 0.8867, 3.0051)
Luminance0.0089 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#210F31 #1F310F
analogous
#100F31 #210F31 #310F30
triadic
#210F31 #31210F #0F3121
tetradic
#210F31 #31100F #1F310F #0F3031
square
#210F31 #31100F #1F310F #0F3031
split-complementary
#210F31 #30310F #0F3110
monochromatic
#100717 #100717 #210F31 #411D60 #602C8F

Accessibility & contrast

On white

17.84
#210F31 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#210F31 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #210F31
17.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##210F31#FFFFFF#000000##FFFFFF
##210F311.0017.841.1817.84
#FFFFFF17.841.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#031732
Deuteranopia (green-blind)
#091830
Tritanopia (blue-blind)
#1E161E
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #210f31;
/* rgb */ color: rgb(33, 15, 49);
/* oklch */ color: oklch(21.4% 0.066 306.0);
Tailwind
colors: {
  custom: {
    50: '#5e4e69',
    500: '#210f31',
    950: '#000000',
  },
}
SCSS
$custom: #210f31;
$custom-light: #5e4e69;
$custom-dark: #000000;
JSON
{
  "hex": "#210f31",
  "rgb": {
    "r": 33,
    "g": 15,
    "b": 49
  },
  "hsl": {
    "h": 271.765,
    "s": 53.125,
    "l": 12.549
  },
  "oklch": {
    "l": 0.21449,
    "c": 0.06638,
    "h": 306
  },
  "luminance": 0.00887
}

Semantic roles & 50–950 ramp

primary
#210F31
secondary
#4C6B31
accent
#DD4B90
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040106
muted
#79777A

Preview Lab

Preview with #210F31

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

Preview Lab → · Contrast checker → · Palette generator →

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