#210838#210838

#210838 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 20.9% C 0.088 H 303.3°. Best body text is #FFFFFF at 18.16:1 contrast (WCAG AA passes).

Color values

HEX#210838
RGBrgb(33, 8, 56)
HSLhsl(271, 75%, 13%)
HSVhsv(271, 86%, 22%)
CMYKcmyk(41.1%, 85.7%, 0%, 78%)
CIE-LABlab(7.07, 23.94, -25.68)
CIE-LCHlch(7.07, 35.11, 312.99°)
OKLaboklab(20.93% 0.0481 -0.0734)
OKLCHoklch(20.93% 0.088 303.3)
XYZxyz(1.4277, 0.7825, 3.8164)
Luminance0.0078 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#210838 #1F3808
analogous
#090838 #210838 #380837
triadic
#210838 #382108 #083821
tetradic
#210838 #380908 #1F3808 #083738
square
#210838 #380908 #1F3808 #083738
split-complementary
#210838 #373808 #083809
monochromatic
#10041B #10041B #210838 #41106E #6017A3

Accessibility & contrast

On white

18.16
#210838 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#210838 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #210838
18.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##210838#FFFFFF#000000##FFFFFF
##2108381.0018.161.1618.16
#FFFFFF18.161.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001539
Deuteranopia (green-blind)
#001637
Tritanopia (blue-blind)
#1C141F
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #210838;
/* rgb */ color: rgb(33, 8, 56);
/* oklch */ color: oklch(20.9% 0.088 303.3);
Tailwind
colors: {
  custom: {
    50: '#5f4a6f',
    500: '#210838',
    950: '#000000',
  },
}
SCSS
$custom: #210838;
$custom-light: #5f4a6f;
$custom-dark: #000000;
JSON
{
  "hex": "#210838",
  "rgb": {
    "r": 33,
    "g": 8,
    "b": 56
  },
  "hsl": {
    "h": 271.25,
    "s": 75,
    "l": 12.549
  },
  "oklch": {
    "l": 0.20934,
    "c": 0.08772,
    "h": 303.3
  },
  "luminance": 0.00783
}

Semantic roles & 50–950 ramp

primary
#210838
secondary
#4C7725
accent
#F23690
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#050107
muted
#79777A

Preview Lab

Preview with #210838

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

Preview Lab → · Contrast checker → · Palette generator →

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