#210540#210540

#210540 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.3% C 0.102 H 298.8°. Best body text is #FFFFFF at 18.10:1 contrast (WCAG AA passes).

Color values

HEX#210540
RGBrgb(33, 5, 64)
HSLhsl(268, 86%, 14%)
HSVhsv(268, 92%, 25%)
CMYKcmyk(48.4%, 92.2%, 0%, 74.9%)
CIE-LABlab(7.24, 28.13, -31.16)
CIE-LCHlch(7.24, 41.98, 312.07°)
OKLaboklab(21.32% 0.0492 -0.0893)
OKLCHoklch(21.32% 0.102 298.8)
XYZxyz(1.6066, 0.8020, 4.9197)
Luminance0.0080 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#210540 #244005
analogous
#050640 #210540 #3E0540
triadic
#210540 #402105 #054021
tetradic
#210540 #400506 #244005 #05403E
square
#210540 #400506 #244005 #05403E
split-complementary
#210540 #403E05 #064005
monochromatic
#0F021C #0F021C #210540 #3E0979 #5C0EB2

Accessibility & contrast

On white

18.10
#210540 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#210540 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #210540
18.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##210540#FFFFFF#000000##FFFFFF
##2105401.0018.101.1618.10
#FFFFFF18.101.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001642
Deuteranopia (green-blind)
#00153F
Tritanopia (blue-blind)
#191623
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #210540;
/* rgb */ color: rgb(33, 5, 64);
/* oklch */ color: oklch(21.3% 0.102 298.8);
Tailwind
colors: {
  custom: {
    50: '#614975',
    500: '#210540',
    950: '#000000',
  },
}
SCSS
$custom: #210540;
$custom-light: #614975;
$custom-dark: #000000;
JSON
{
  "hex": "#210540",
  "rgb": {
    "r": 33,
    "g": 5,
    "b": 64
  },
  "hsl": {
    "h": 268.475,
    "s": 85.507,
    "l": 13.529
  },
  "oklch": {
    "l": 0.21321,
    "c": 0.10197,
    "h": 298.8
  },
  "luminance": 0.00802
}

Semantic roles & 50–950 ramp

primary
#210540
secondary
#538120
accent
#FC2C99
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050108
muted
#79777B

Preview Lab

Preview with #210540

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

Preview Lab → · Contrast checker → · Palette generator →

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