#210842#210842

#210842 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 22.0% C 0.100 H 296.7°. Best body text is #FFFFFF at 17.83:1 contrast (WCAG AA passes).

Color values

HEX#210842
RGBrgb(33, 8, 66)
HSLhsl(266, 78%, 15%)
HSVhsv(266, 88%, 26%)
CMYKcmyk(50%, 87.9%, 0%, 74.1%)
CIE-LABlab(8.04, 27.06, -31.28)
CIE-LCHlch(8.04, 41.35, 310.86°)
OKLaboklab(21.96% 0.0451 -0.0896)
OKLCHoklch(21.96% 0.1 296.7)
XYZxyz(1.6971, 0.8903, 5.2356)
Luminance0.0089 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#210842 #294208
analogous
#080C42 #210842 #3E0842
triadic
#210842 #422108 #084221
tetradic
#210842 #42080C #294208 #08423E
square
#210842 #42080C #294208 #08423E
split-complementary
#210842 #423E08 #0C4208
monochromatic
#0E031B #0E031B #210842 #3C0F79 #5815AF

Accessibility & contrast

On white

17.83
#210842 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #210842
17.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##210842#FFFFFF#000000##FFFFFF
##2108421.0017.831.1817.83
#FFFFFF17.831.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.831.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: #210842;
/* rgb */ color: rgb(33, 8, 66);
/* oklch */ color: oklch(22.0% 0.100 296.7);
Tailwind
colors: {
  custom: {
    50: '#614a77',
    500: '#210842',
    950: '#000000',
  },
}
SCSS
$custom: #210842;
$custom-light: #614a77;
$custom-dark: #000000;
JSON
{
  "hex": "#210842",
  "rgb": {
    "r": 33,
    "g": 8,
    "b": 66
  },
  "hsl": {
    "h": 265.862,
    "s": 78.378,
    "l": 14.51
  },
  "oklch": {
    "l": 0.21958,
    "c": 0.10029,
    "h": 296.7
  },
  "luminance": 0.0089
}

Semantic roles & 50–950 ramp

primary
#210842
secondary
#598025
accent
#F533A1
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050109
muted
#79777B

Preview Lab

Preview with #210842

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

Preview Lab → · Contrast checker → · Palette generator →

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