#210942#210942

#210942 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 22.1% C 0.099 H 296.4°. Best body text is #FFFFFF at 17.76:1 contrast (WCAG AA passes).

Color values

HEX#210942
RGBrgb(33, 9, 66)
HSLhsl(265, 76%, 15%)
HSVhsv(265, 86%, 26%)
CMYKcmyk(50%, 86.4%, 0%, 74.1%)
CIE-LABlab(8.24, 26.50, -30.96)
CIE-LCHlch(8.24, 40.75, 310.56°)
OKLaboklab(22.09% 0.044 -0.0887)
OKLCHoklch(22.09% 0.099 296.4)
XYZxyz(1.7080, 0.9120, 5.2392)
Luminance0.0091 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#210942 #2A4209
analogous
#090E42 #210942 #3E0942
triadic
#210942 #422109 #094221
tetradic
#210942 #42090E #2A4209 #09423E
square
#210942 #42090E #2A4209 #09423E
split-complementary
#210942 #423E09 #0E4209
monochromatic
#0D041B #0D041B #210942 #3C1078 #5718AE

Accessibility & contrast

On white

17.76
#210942 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#210942 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #210942
17.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##210942#FFFFFF#000000##FFFFFF
##2109421.0017.761.1817.76
#FFFFFF17.761.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001844
Deuteranopia (green-blind)
#001741
Tritanopia (blue-blind)
#181825
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #210942;
/* rgb */ color: rgb(33, 9, 66);
/* oklch */ color: oklch(22.1% 0.099 296.4);
Tailwind
colors: {
  custom: {
    50: '#614b77',
    500: '#210942',
    950: '#000000',
  },
}
SCSS
$custom: #210942;
$custom-light: #614b77;
$custom-dark: #000000;
JSON
{
  "hex": "#210942",
  "rgb": {
    "r": 33,
    "g": 9,
    "b": 66
  },
  "hsl": {
    "h": 265.263,
    "s": 76,
    "l": 14.706
  },
  "oklch": {
    "l": 0.22093,
    "c": 0.09899,
    "h": 296.4
  },
  "luminance": 0.00912
}

Semantic roles & 50–950 ramp

primary
#210942
secondary
#5A8027
accent
#F335A3
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050109
muted
#79777B

Preview Lab

Preview with #210942

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

Preview Lab → · Contrast checker → · Palette generator →

#210942 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva