#210340#210340

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

Color values

HEX#210340
RGBrgb(33, 3, 64)
HSLhsl(270, 91%, 13%)
HSVhsv(270, 95%, 25%)
CMYKcmyk(48.4%, 95.3%, 0%, 74.9%)
CIE-LABlab(6.85, 29.24, -31.80)
CIE-LCHlch(6.85, 43.20, 312.60°)
OKLaboklab(21.03% 0.0516 -0.0913)
OKLCHoklch(21.03% 0.105 299.5)
XYZxyz(1.5849, 0.7586, 4.9124)
Luminance0.0076 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#210340 #224003
analogous
#030440 #210340 #3F0340
triadic
#210340 #402103 #034021
tetradic
#210340 #400304 #224003 #03403F
square
#210340 #400304 #224003 #03403F
split-complementary
#210340 #403F03 #044003
monochromatic
#0F011D #0F011D #210340 #3F067A #5D08B5

Accessibility & contrast

On white

18.23
#210340 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#210340 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #210340
18.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##210340#FFFFFF#000000##FFFFFF
##2103401.0018.231.1518.23
#FFFFFF18.231.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001542
Deuteranopia (green-blind)
#00153F
Tritanopia (blue-blind)
#191422
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #210340;
/* rgb */ color: rgb(33, 3, 64);
/* oklch */ color: oklch(21.0% 0.105 299.5);
Tailwind
colors: {
  custom: {
    50: '#614775',
    500: '#210340',
    950: '#000000',
  },
}
SCSS
$custom: #210340;
$custom-light: #614775;
$custom-dark: #000000;
JSON
{
  "hex": "#210340",
  "rgb": {
    "r": 33,
    "g": 3,
    "b": 64
  },
  "hsl": {
    "h": 269.508,
    "s": 91.045,
    "l": 13.137
  },
  "oklch": {
    "l": 0.21027,
    "c": 0.10492,
    "h": 299.5
  },
  "luminance": 0.00759
}

Semantic roles & 50–950 ramp

primary
#210340
secondary
#50821D
accent
#FF2996
background
#F5F4F7
surface
#EAE6ED
border
#C6C2C8
text
#050008
muted
#79777B

Preview Lab

Preview with #210340

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

Preview Lab → · Contrast checker → · Palette generator →

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