#21113A#21113A

#21113A is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.6% C 0.076 H 298.0°. Best body text is #FFFFFF at 17.41:1 contrast (WCAG AA passes).

Color values

HEX#21113A
RGBrgb(33, 17, 58)
HSLhsl(263, 55%, 15%)
HSVhsv(263, 71%, 23%)
CMYKcmyk(43.1%, 70.7%, 0%, 77.3%)
CIE-LABlab(9.24, 19.13, -23.62)
CIE-LCHlch(9.24, 30.39, 309.01°)
OKLaboklab(22.57% 0.0357 -0.0671)
OKLCHoklch(22.57% 0.076 298)
XYZxyz(1.5912, 1.0297, 4.1171)
Luminance0.0103 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21113A #2A3A11
analogous
#11153A #21113A #36113A
triadic
#21113A #3A2111 #113A21
tetradic
#21113A #3A1115 #2A3A11 #113A36
square
#21113A #3A1115 #2A3A11 #113A36
split-complementary
#21113A #3A3611 #153A11
monochromatic
#0D0718 #0D0718 #21113A #3C1F69 #572D99

Accessibility & contrast

On white

17.41
#21113A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#21113A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21113A
17.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21113A#FFFFFF#000000##FFFFFF
##21113A1.0017.411.2117.41
#FFFFFF17.411.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A3B
Deuteranopia (green-blind)
#031A39
Tritanopia (blue-blind)
#1B1A23
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #21113a;
/* rgb */ color: rgb(33, 17, 58);
/* oklch */ color: oklch(22.6% 0.076 298.0);
Tailwind
colors: {
  custom: {
    50: '#5f5070',
    500: '#21113a',
    950: '#000000',
  },
}
SCSS
$custom: #21113a;
$custom-light: #5f5070;
$custom-dark: #000000;
JSON
{
  "hex": "#21113a",
  "rgb": {
    "r": 33,
    "g": 17,
    "b": 58
  },
  "hsl": {
    "h": 263.415,
    "s": 54.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.22574,
    "c": 0.07605,
    "h": 298
  },
  "luminance": 0.0103
}

Semantic roles & 50–950 ramp

primary
#21113A
secondary
#5A7333
accent
#DE4AA4
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#050207
muted
#79787A

Preview Lab

Preview with #21113A

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

Preview Lab → · Contrast checker → · Palette generator →

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