#210731#210731

#210731 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.1% C 0.081 H 309.3°. Best body text is #FFFFFF at 18.43:1 contrast (WCAG AA passes).

Color values

HEX#210731
RGBrgb(33, 7, 49)
HSLhsl(277, 75%, 11%)
HSVhsv(277, 86%, 19%)
CMYKcmyk(32.7%, 85.7%, 0%, 80.8%)
CIE-LABlab(6.30, 22.15, -21.78)
CIE-LCHlch(6.30, 31.07, 315.47°)
OKLaboklab(20.11% 0.0511 -0.0624)
OKLCHoklch(20.11% 0.081 309.3)
XYZxyz(1.2574, 0.6971, 2.9734)
Luminance0.0070 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#210731 #173107
analogous
#0C0731 #210731 #31072C
triadic
#210731 #312107 #073121
tetradic
#210731 #310C07 #173107 #072C31
square
#210731 #310C07 #173107 #072C31
split-complementary
#210731 #2C3107 #07310C
monochromatic
#12041B #12041B #210731 #450F67 #69169C

Accessibility & contrast

On white

18.43
#210731 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#210731 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #210731
18.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##210731#FFFFFF#000000##FFFFFF
##2107311.0018.431.1418.43
#FFFFFF18.431.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001332
Deuteranopia (green-blind)
#011430
Tritanopia (blue-blind)
#1F101B
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #210731;
/* rgb */ color: rgb(33, 7, 49);
/* oklch */ color: oklch(20.1% 0.081 309.3);
Tailwind
colors: {
  custom: {
    50: '#5e4969',
    500: '#210731',
    950: '#000000',
  },
}
SCSS
$custom: #210731;
$custom-light: #5e4969;
$custom-dark: #000000;
JSON
{
  "hex": "#210731",
  "rgb": {
    "r": 33,
    "g": 7,
    "b": 49
  },
  "hsl": {
    "h": 277.143,
    "s": 75,
    "l": 10.98
  },
  "oklch": {
    "l": 0.20114,
    "c": 0.08065,
    "h": 309.3
  },
  "luminance": 0.00697
}

Semantic roles & 50–950 ramp

primary
#210731
secondary
#417123
accent
#F2367E
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040106
muted
#79777A

Preview Lab

Preview with #210731

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

Preview Lab → · Contrast checker → · Palette generator →

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