#210C40#210C40

#210C40 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.3% C 0.092 H 296.6°. Best body text is #FFFFFF at 17.63:1 contrast (WCAG AA passes).

Color values

HEX#210C40
RGBrgb(33, 12, 64)
HSLhsl(264, 68%, 15%)
HSVhsv(264, 81%, 25%)
CMYKcmyk(48.4%, 81.2%, 0%, 74.9%)
CIE-LABlab(8.62, 24.21, -28.91)
CIE-LCHlch(8.62, 37.70, 309.95°)
OKLaboklab(22.3% 0.0413 -0.0827)
OKLCHoklch(22.3% 0.092 296.6)
XYZxyz(1.6838, 0.9564, 4.9454)
Luminance0.0096 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#210C40 #2B400C
analogous
#0C1140 #210C40 #3B0C40
triadic
#210C40 #40210C #0C4021
tetradic
#210C40 #400C11 #2B400C #0C403B
square
#210C40 #400C11 #2B400C #0C403B
split-complementary
#210C40 #403B0C #11400C
monochromatic
#0D051A #0D051A #210C40 #3C1674 #561FA7

Accessibility & contrast

On white

17.63
#210C40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#210C40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #210C40
17.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##210C40#FFFFFF#000000##FFFFFF
##210C401.0017.631.1917.63
#FFFFFF17.631.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001942
Deuteranopia (green-blind)
#00183F
Tritanopia (blue-blind)
#191925
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #210c40;
/* rgb */ color: rgb(33, 12, 64);
/* oklch */ color: oklch(22.3% 0.092 296.6);
Tailwind
colors: {
  custom: {
    50: '#604d75',
    500: '#210c40',
    950: '#000000',
  },
}
SCSS
$custom: #210c40;
$custom-light: #604d75;
$custom-dark: #000000;
JSON
{
  "hex": "#210c40",
  "rgb": {
    "r": 33,
    "g": 12,
    "b": 64
  },
  "hsl": {
    "h": 264.231,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.22303,
    "c": 0.09243,
    "h": 296.6
  },
  "luminance": 0.00956
}

Semantic roles & 50–950 ramp

primary
#210C40
secondary
#5C7C2C
accent
#EB3DA5
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050108
muted
#79777B

Preview Lab

Preview with #210C40

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

Preview Lab → · Contrast checker → · Palette generator →

#210C40 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva