#210542#210542

#210542 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.5% C 0.104 H 297.6°. Best body text is #FFFFFF at 18.03:1 contrast (WCAG AA passes).

Color values

HEX#210542
RGBrgb(33, 5, 66)
HSLhsl(268, 86%, 14%)
HSVhsv(268, 92%, 26%)
CMYKcmyk(50%, 92.4%, 0%, 74.1%)
CIE-LABlab(7.45, 28.75, -32.24)
CIE-LCHlch(7.45, 43.20, 311.73°)
OKLaboklab(21.54% 0.0483 -0.0924)
OKLCHoklch(21.54% 0.104 297.6)
XYZxyz(1.6646, 0.8252, 5.2248)
Luminance0.0083 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#210542 #264205
analogous
#050842 #210542 #400542
triadic
#210542 #422105 #054221
tetradic
#210542 #420508 #264205 #054240
square
#210542 #420508 #264205 #054240
split-complementary
#210542 #424005 #084205
monochromatic
#0E021C #0E021C #210542 #3D097B #5A0EB4

Accessibility & contrast

On white

18.03
#210542 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #210542
18.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##210542#FFFFFF#000000##FFFFFF
##2105421.0018.031.1718.03
#FFFFFF18.031.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF18.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #210542;
/* rgb */ color: rgb(33, 5, 66);
/* oklch */ color: oklch(21.5% 0.104 297.6);
Tailwind
colors: {
  custom: {
    50: '#614977',
    500: '#210542',
    950: '#000000',
  },
}
SCSS
$custom: #210542;
$custom-light: #614977;
$custom-dark: #000000;
JSON
{
  "hex": "#210542",
  "rgb": {
    "r": 33,
    "g": 5,
    "b": 66
  },
  "hsl": {
    "h": 267.541,
    "s": 85.915,
    "l": 13.922
  },
  "oklch": {
    "l": 0.21541,
    "c": 0.10432,
    "h": 297.6
  },
  "luminance": 0.00825
}

Semantic roles & 50–950 ramp

primary
#210542
secondary
#558220
accent
#FC2C9C
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#050109
muted
#7A777B

Preview Lab

Preview with #210542

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

Preview Lab → · Contrast checker → · Palette generator →

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