#210831#210831

#210831 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.3% C 0.079 H 308.9°. Best body text is #FFFFFF at 18.36:1 contrast (WCAG AA passes).

Color values

HEX#210831
RGBrgb(33, 8, 49)
HSLhsl(277, 72%, 11%)
HSVhsv(277, 84%, 19%)
CMYKcmyk(32.7%, 83.7%, 0%, 80.8%)
CIE-LABlab(6.49, 21.64, -21.47)
CIE-LCHlch(6.49, 30.49, 315.23°)
OKLaboklab(20.28% 0.0496 -0.0613)
OKLCHoklch(20.28% 0.079 308.9)
XYZxyz(1.2683, 0.7188, 2.9771)
Luminance0.0072 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#210831 #183108
analogous
#0C0831 #210831 #31082C
triadic
#210831 #312108 #083121
tetradic
#210831 #310C08 #183108 #082C31
square
#210831 #310C08 #183108 #082C31
split-complementary
#210831 #2C3108 #08310C
monochromatic
#12041A #12041A #210831 #441166 #68199A

Accessibility & contrast

On white

18.36
#210831 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #210831
18.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##210831#FFFFFF#000000##FFFFFF
##2108311.0018.361.1418.36
#FFFFFF18.361.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.361.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #210831;
/* rgb */ color: rgb(33, 8, 49);
/* oklch */ color: oklch(20.3% 0.079 308.9);
Tailwind
colors: {
  custom: {
    50: '#5e4a69',
    500: '#210831',
    950: '#000000',
  },
}
SCSS
$custom: #210831;
$custom-light: #5e4a69;
$custom-dark: #000000;
JSON
{
  "hex": "#210831",
  "rgb": {
    "r": 33,
    "g": 8,
    "b": 49
  },
  "hsl": {
    "h": 276.585,
    "s": 71.93,
    "l": 11.176
  },
  "oklch": {
    "l": 0.20276,
    "c": 0.07886,
    "h": 308.9
  },
  "luminance": 0.00719
}

Semantic roles & 50–950 ramp

primary
#210831
secondary
#427025
accent
#EF3980
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040106
muted
#79777A

Preview Lab

Preview with #210831

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

Preview Lab → · Contrast checker → · Palette generator →

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