#210840#210840

#210840 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.7% C 0.098 H 297.9°. Best body text is #FFFFFF at 17.90:1 contrast (WCAG AA passes).

Color values

HEX#210840
RGBrgb(33, 8, 64)
HSLhsl(267, 78%, 14%)
HSVhsv(267, 88%, 25%)
CMYKcmyk(48.4%, 87.5%, 0%, 74.9%)
CIE-LABlab(7.83, 26.46, -30.20)
CIE-LCHlch(7.83, 40.15, 311.22°)
OKLaboklab(21.75% 0.0457 -0.0864)
OKLCHoklch(21.75% 0.098 297.9)
XYZxyz(1.6392, 0.8671, 4.9305)
Luminance0.0087 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#210840 #274008
analogous
#080B40 #210840 #3D0840
triadic
#210840 #402108 #084021
tetradic
#210840 #40080B #274008 #08403D
square
#210840 #40080B #274008 #08403D
split-complementary
#210840 #403D08 #0B4008
monochromatic
#0E031B #0E031B #210840 #3D0F76 #5916AD

Accessibility & contrast

On white

17.90
#210840 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #210840
17.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##210840#FFFFFF#000000##FFFFFF
##2108401.0017.901.1717.90
#FFFFFF17.901.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001742
Deuteranopia (green-blind)
#00173F
Tritanopia (blue-blind)
#191724
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #210840;
/* rgb */ color: rgb(33, 8, 64);
/* oklch */ color: oklch(21.7% 0.098 297.9);
Tailwind
colors: {
  custom: {
    50: '#604a75',
    500: '#210840',
    950: '#000000',
  },
}
SCSS
$custom: #210840;
$custom-light: #604a75;
$custom-dark: #000000;
JSON
{
  "hex": "#210840",
  "rgb": {
    "r": 33,
    "g": 8,
    "b": 64
  },
  "hsl": {
    "h": 266.786,
    "s": 77.778,
    "l": 14.118
  },
  "oklch": {
    "l": 0.21746,
    "c": 0.09779,
    "h": 297.9
  },
  "luminance": 0.00867
}

Semantic roles & 50–950 ramp

primary
#210840
secondary
#577E25
accent
#F4349E
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050108
muted
#79777B

Preview Lab

Preview with #210840

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

Preview Lab → · Contrast checker → · Palette generator →

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