#21083F#21083F

#21083F is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.6% C 0.097 H 298.5°. Best body text is #FFFFFF at 17.93:1 contrast (WCAG AA passes).

Color values

HEX#21083F
RGBrgb(33, 8, 63)
HSLhsl(267, 77%, 14%)
HSVhsv(267, 87%, 25%)
CMYKcmyk(47.6%, 87.3%, 0%, 75.3%)
CIE-LABlab(7.73, 26.15, -29.65)
CIE-LCHlch(7.73, 39.53, 311.41°)
OKLaboklab(21.64% 0.0461 -0.0848)
OKLCHoklch(21.64% 0.097 298.5)
XYZxyz(1.6110, 0.8559, 4.7820)
Luminance0.0086 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21083F #263F08
analogous
#080B3F #21083F #3D083F
triadic
#21083F #3F2108 #083F21
tetradic
#21083F #3F080B #263F08 #083F3D
square
#21083F #3F080B #263F08 #083F3D
split-complementary
#21083F #3F3D08 #0B3F08
monochromatic
#0E031B #0E031B #21083F #3D0F75 #5A16AC

Accessibility & contrast

On white

17.93
#21083F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21083F
17.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21083F#FFFFFF#000000##FFFFFF
##21083F1.0017.931.1717.93
#FFFFFF17.931.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001741
Deuteranopia (green-blind)
#00163E
Tritanopia (blue-blind)
#191723
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #21083f;
/* rgb */ color: rgb(33, 8, 63);
/* oklch */ color: oklch(21.6% 0.097 298.5);
Tailwind
colors: {
  custom: {
    50: '#604a75',
    500: '#21083f',
    950: '#000000',
  },
}
SCSS
$custom: #21083f;
$custom-light: #604a75;
$custom-dark: #000000;
JSON
{
  "hex": "#21083f",
  "rgb": {
    "r": 33,
    "g": 8,
    "b": 63
  },
  "hsl": {
    "h": 267.273,
    "s": 77.465,
    "l": 13.922
  },
  "oklch": {
    "l": 0.21641,
    "c": 0.09653,
    "h": 298.5
  },
  "luminance": 0.00856
}

Semantic roles & 50–950 ramp

primary
#21083F
secondary
#557E25
accent
#F4349D
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050108
muted
#79777B

Preview Lab

Preview with #21083F

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

Preview Lab → · Contrast checker → · Palette generator →

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