#210642#210642

#210642 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.7% C 0.103 H 297.3°. Best body text is #FFFFFF at 17.96:1 contrast (WCAG AA passes).

Color values

HEX#210642
RGBrgb(33, 6, 66)
HSLhsl(267, 83%, 14%)
HSVhsv(267, 91%, 26%)
CMYKcmyk(50%, 90.9%, 0%, 74.1%)
CIE-LABlab(7.65, 28.19, -31.92)
CIE-LCHlch(7.65, 42.58, 311.45°)
OKLaboklab(21.68% 0.0472 -0.0915)
OKLCHoklch(21.68% 0.103 297.3)
XYZxyz(1.6754, 0.8469, 5.2284)
Luminance0.0085 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#210642 #274206
analogous
#060942 #210642 #3F0642
triadic
#210642 #422106 #064221
tetradic
#210642 #420609 #274206 #06423F
square
#210642 #420609 #274206 #06423F
split-complementary
#210642 #423F06 #094206
monochromatic
#0E031C #0E031C #210642 #3D0B7A #5910B2

Accessibility & contrast

On white

17.96
#210642 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#210642 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #210642
17.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##210642#FFFFFF#000000##FFFFFF
##2106421.0017.961.1717.96
#FFFFFF17.961.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001744
Deuteranopia (green-blind)
#001641
Tritanopia (blue-blind)
#181724
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #210642;
/* rgb */ color: rgb(33, 6, 66);
/* oklch */ color: oklch(21.7% 0.103 297.3);
Tailwind
colors: {
  custom: {
    50: '#614977',
    500: '#210642',
    950: '#000000',
  },
}
SCSS
$custom: #210642;
$custom-light: #614977;
$custom-dark: #000000;
JSON
{
  "hex": "#210642",
  "rgb": {
    "r": 33,
    "g": 6,
    "b": 66
  },
  "hsl": {
    "h": 267,
    "s": 83.333,
    "l": 14.118
  },
  "oklch": {
    "l": 0.21682,
    "c": 0.10295,
    "h": 297.3
  },
  "luminance": 0.00847
}

Semantic roles & 50–950 ramp

primary
#210642
secondary
#578222
accent
#FA2E9E
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050109
muted
#79777B

Preview Lab

Preview with #210642

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

Preview Lab → · Contrast checker → · Palette generator →

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