#21113F#21113F

#21113F is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.0% C 0.083 H 295.0°. Best body text is #FFFFFF at 17.26:1 contrast (WCAG AA passes).

Color values

HEX#21113F
RGBrgb(33, 17, 63)
HSLhsl(261, 58%, 16%)
HSVhsv(261, 73%, 25%)
CMYKcmyk(47.6%, 73%, 0%, 75.3%)
CIE-LABlab(9.67, 20.76, -26.50)
CIE-LCHlch(9.67, 33.66, 308.08°)
OKLaboklab(23.02% 0.0353 -0.0756)
OKLCHoklch(23.02% 0.083 295)
XYZxyz(1.7246, 1.0831, 4.8199)
Luminance0.0108 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21113F #2F3F11
analogous
#11183F #21113F #38113F
triadic
#21113F #3F2111 #113F21
tetradic
#21113F #3F1118 #2F3F11 #113F38
square
#21113F #3F1118 #2F3F11 #113F38
split-complementary
#21113F #3F3811 #183F11
monochromatic
#0D0718 #0D0718 #21113F #3A1E6F #532B9F

Accessibility & contrast

On white

17.26
#21113F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#21113F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21113F
17.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21113F#FFFFFF#000000##FFFFFF
##21113F1.0017.261.2217.26
#FFFFFF17.261.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B40
Deuteranopia (green-blind)
#001A3E
Tritanopia (blue-blind)
#191C26
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #21113f;
/* rgb */ color: rgb(33, 17, 63);
/* oklch */ color: oklch(23.0% 0.083 295.0);
Tailwind
colors: {
  custom: {
    50: '#5f5074',
    500: '#21113f',
    950: '#000000',
  },
}
SCSS
$custom: #21113f;
$custom-light: #5f5074;
$custom-dark: #000000;
JSON
{
  "hex": "#21113f",
  "rgb": {
    "r": 33,
    "g": 17,
    "b": 63
  },
  "hsl": {
    "h": 260.87,
    "s": 57.5,
    "l": 15.686
  },
  "oklch": {
    "l": 0.23021,
    "c": 0.08344,
    "h": 295
  },
  "luminance": 0.01083
}

Semantic roles & 50–950 ramp

primary
#21113F
secondary
#607833
accent
#E147AB
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#050208
muted
#79787B

Preview Lab

Preview with #21113F

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

Preview Lab → · Contrast checker → · Palette generator →

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