#210839#210839

#210839 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.0% C 0.089 H 302.5°. Best body text is #FFFFFF at 18.13:1 contrast (WCAG AA passes).

Color values

HEX#210839
RGBrgb(33, 8, 57)
HSLhsl(271, 75%, 13%)
HSVhsv(271, 86%, 22%)
CMYKcmyk(42.1%, 86%, 0%, 77.6%)
CIE-LABlab(7.16, 24.26, -26.26)
CIE-LCHlch(7.16, 35.75, 312.73°)
OKLaboklab(21.03% 0.0478 -0.075)
OKLCHoklch(21.03% 0.089 302.5)
XYZxyz(1.4524, 0.7924, 3.9465)
Luminance0.0079 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#210839 #203908
analogous
#080839 #210839 #390838
triadic
#210839 #392108 #083921
tetradic
#210839 #390808 #203908 #083839
square
#210839 #390808 #203908 #083839
split-complementary
#210839 #383908 #083908
monochromatic
#10041B #10041B #210839 #40106F #5F17A4

Accessibility & contrast

On white

18.13
#210839 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #210839
18.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##210839#FFFFFF#000000##FFFFFF
##2108391.0018.131.1618.13
#FFFFFF18.131.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00153A
Deuteranopia (green-blind)
#001638
Tritanopia (blue-blind)
#1C1420
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #210839;
/* rgb */ color: rgb(33, 8, 57);
/* oklch */ color: oklch(21.0% 0.089 302.5);
Tailwind
colors: {
  custom: {
    50: '#5f4a70',
    500: '#210839',
    950: '#000000',
  },
}
SCSS
$custom: #210839;
$custom-light: #5f4a70;
$custom-dark: #000000;
JSON
{
  "hex": "#210839",
  "rgb": {
    "r": 33,
    "g": 8,
    "b": 57
  },
  "hsl": {
    "h": 270.612,
    "s": 75.385,
    "l": 12.745
  },
  "oklch": {
    "l": 0.21033,
    "c": 0.08898,
    "h": 302.5
  },
  "luminance": 0.00792
}

Semantic roles & 50–950 ramp

primary
#210839
secondary
#4E7825
accent
#F23692
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#050107
muted
#79777A

Preview Lab

Preview with #210839

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

Preview Lab → · Contrast checker → · Palette generator →

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