#21083E#21083E

#21083E is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.5% C 0.095 H 299.1°. Best body text is #FFFFFF at 17.96:1 contrast (WCAG AA passes).

Color values

HEX#21083E
RGBrgb(33, 8, 62)
HSLhsl(268, 77%, 14%)
HSVhsv(268, 87%, 24%)
CMYKcmyk(46.8%, 87.1%, 0%, 75.7%)
CIE-LABlab(7.63, 25.84, -29.10)
CIE-LCHlch(7.63, 38.91, 311.61°)
OKLaboklab(21.54% 0.0464 -0.0832)
OKLCHoklch(21.54% 0.095 299.1)
XYZxyz(1.5833, 0.8448, 4.6361)
Luminance0.0084 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21083E #253E08
analogous
#080A3E #21083E #3C083E
triadic
#21083E #3E2108 #083E21
tetradic
#21083E #3E080A #253E08 #083E3C
square
#21083E #3E080A #253E08 #083E3C
split-complementary
#21083E #3E3C08 #0A3E08
monochromatic
#0E031B #0E031B #21083E #3E0F74 #5B16AA

Accessibility & contrast

On white

17.96
#21083E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#21083E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21083E
17.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21083E#FFFFFF#000000##FFFFFF
##21083E1.0017.961.1717.96
#FFFFFF17.961.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001740
Deuteranopia (green-blind)
#00163D
Tritanopia (blue-blind)
#1A1622
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #21083e;
/* rgb */ color: rgb(33, 8, 62);
/* oklch */ color: oklch(21.5% 0.095 299.1);
Tailwind
colors: {
  custom: {
    50: '#604a74',
    500: '#21083e',
    950: '#000000',
  },
}
SCSS
$custom: #21083e;
$custom-light: #604a74;
$custom-dark: #000000;
JSON
{
  "hex": "#21083e",
  "rgb": {
    "r": 33,
    "g": 8,
    "b": 62
  },
  "hsl": {
    "h": 267.778,
    "s": 77.143,
    "l": 13.725
  },
  "oklch": {
    "l": 0.21538,
    "c": 0.09528,
    "h": 299.1
  },
  "luminance": 0.00845
}

Semantic roles & 50–950 ramp

primary
#21083E
secondary
#547D25
accent
#F4349B
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050108
muted
#79777B

Preview Lab

Preview with #21083E

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

Preview Lab → · Contrast checker → · Palette generator →

#21083E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva