#210742#210742

#210742 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.8% C 0.102 H 297.0°. Best body text is #FFFFFF at 17.89:1 contrast (WCAG AA passes).

Color values

HEX#210742
RGBrgb(33, 7, 66)
HSLhsl(266, 81%, 14%)
HSVhsv(266, 89%, 26%)
CMYKcmyk(50%, 89.4%, 0%, 74.1%)
CIE-LABlab(7.85, 27.62, -31.60)
CIE-LCHlch(7.85, 41.97, 311.16°)
OKLaboklab(21.82% 0.0461 -0.0905)
OKLCHoklch(21.82% 0.102 297)
XYZxyz(1.6863, 0.8686, 5.2320)
Luminance0.0087 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#210742 #284207
analogous
#070A42 #210742 #3F0742
triadic
#210742 #422107 #074221
tetradic
#210742 #42070A #284207 #07423F
square
#210742 #42070A #284207 #07423F
split-complementary
#210742 #423F07 #0A4207
monochromatic
#0E031C #0E031C #210742 #3D0D79 #5813B1

Accessibility & contrast

On white

17.89
#210742 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#210742 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #210742
17.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##210742#FFFFFF#000000##FFFFFF
##2107421.0017.891.1717.89
#FFFFFF17.891.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001744
Deuteranopia (green-blind)
#001641
Tritanopia (blue-blind)
#181725
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #210742;
/* rgb */ color: rgb(33, 7, 66);
/* oklch */ color: oklch(21.8% 0.102 297.0);
Tailwind
colors: {
  custom: {
    50: '#614a77',
    500: '#210742',
    950: '#000000',
  },
}
SCSS
$custom: #210742;
$custom-light: #614a77;
$custom-dark: #000000;
JSON
{
  "hex": "#210742",
  "rgb": {
    "r": 33,
    "g": 7,
    "b": 66
  },
  "hsl": {
    "h": 266.441,
    "s": 80.822,
    "l": 14.314
  },
  "oklch": {
    "l": 0.2182,
    "c": 0.10161,
    "h": 297
  },
  "luminance": 0.00869
}

Semantic roles & 50–950 ramp

primary
#210742
secondary
#588124
accent
#F731A0
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050109
muted
#79777B

Preview Lab

Preview with #210742

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

Preview Lab → · Contrast checker → · Palette generator →

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