#210231#210231

#210231 is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.3% C 0.090 H 311.1°. Best body text is #FFFFFF at 18.79:1 contrast (WCAG AA passes).

Color values

HEX#210231
RGBrgb(33, 2, 49)
HSLhsl(280, 92%, 10%)
HSVhsv(280, 96%, 19%)
CMYKcmyk(32.7%, 95.9%, 0%, 80.8%)
CIE-LABlab(5.32, 24.65, -23.35)
CIE-LCHlch(5.32, 33.96, 316.55°)
OKLaboklab(19.26% 0.0594 -0.0681)
OKLCHoklch(19.26% 0.09 311.1)
XYZxyz(1.2032, 0.5885, 2.9554)
Luminance0.0059 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#210231 #123102
analogous
#090231 #210231 #31022A
triadic
#210231 #312102 #023121
tetradic
#210231 #310902 #123102 #022A31
square
#210231 #310902 #123102 #022A31
split-complementary
#210231 #2A3102 #023109
monochromatic
#14011D #14011D #210231 #49046C #7007A7

Accessibility & contrast

On white

18.79
#210231 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#210231 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #210231
18.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##210231#FFFFFF#000000##FFFFFF
##2102311.0018.791.1218.79
#FFFFFF18.791.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001032
Deuteranopia (green-blind)
#001230
Tritanopia (blue-blind)
#1F0D19
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #210231;
/* rgb */ color: rgb(33, 2, 49);
/* oklch */ color: oklch(19.3% 0.090 311.1);
Tailwind
colors: {
  custom: {
    50: '#5e4769',
    500: '#210231',
    950: '#000000',
  },
}
SCSS
$custom: #210231;
$custom-light: #5e4769;
$custom-dark: #000000;
JSON
{
  "hex": "#210231",
  "rgb": {
    "r": 33,
    "g": 2,
    "b": 49
  },
  "hsl": {
    "h": 279.574,
    "s": 92.157,
    "l": 10
  },
  "oklch": {
    "l": 0.19261,
    "c": 0.09038,
    "h": 311.1
  },
  "luminance": 0.00589
}

Semantic roles & 50–950 ramp

primary
#210231
secondary
#397519
accent
#FF2972
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#050006
muted
#79777A

Preview Lab

Preview with #210231

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

Preview Lab → · Contrast checker → · Palette generator →

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