#21113C#21113C

#21113C is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 22.8% C 0.079 H 296.8°. Best body text is #FFFFFF at 17.36:1 contrast (WCAG AA passes).

Color values

HEX#21113C
RGBrgb(33, 17, 60)
HSLhsl(262, 56%, 15%)
HSVhsv(262, 72%, 24%)
CMYKcmyk(45%, 71.7%, 0%, 76.5%)
CIE-LABlab(9.40, 19.78, -24.78)
CIE-LCHlch(9.40, 31.71, 308.60°)
OKLaboklab(22.75% 0.0356 -0.0706)
OKLCHoklch(22.75% 0.079 296.8)
XYZxyz(1.6430, 1.0504, 4.3903)
Luminance0.0105 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21113C #2C3C11
analogous
#11163C #21113C #37113C
triadic
#21113C #3C2111 #113C21
tetradic
#21113C #3C1116 #2C3C11 #113C37
square
#21113C #3C1116 #2C3C11 #113C37
split-complementary
#21113C #3C3711 #163C11
monochromatic
#0D0718 #0D0718 #21113C #3B1F6C #552C9B

Accessibility & contrast

On white

17.36
#21113C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21113C
17.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21113C#FFFFFF#000000##FFFFFF
##21113C1.0017.361.2117.36
#FFFFFF17.361.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A3D
Deuteranopia (green-blind)
#001A3B
Tritanopia (blue-blind)
#1A1B24
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #21113c;
/* rgb */ color: rgb(33, 17, 60);
/* oklch */ color: oklch(22.8% 0.079 296.8);
Tailwind
colors: {
  custom: {
    50: '#5f5072',
    500: '#21113c',
    950: '#000000',
  },
}
SCSS
$custom: #21113c;
$custom-light: #5f5072;
$custom-dark: #000000;
JSON
{
  "hex": "#21113c",
  "rgb": {
    "r": 33,
    "g": 17,
    "b": 60
  },
  "hsl": {
    "h": 262.326,
    "s": 55.844,
    "l": 15.098
  },
  "oklch": {
    "l": 0.2275,
    "c": 0.07902,
    "h": 296.8
  },
  "luminance": 0.0105
}

Semantic roles & 50–950 ramp

primary
#21113C
secondary
#5D7533
accent
#DF49A7
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#050208
muted
#79787B

Preview Lab

Preview with #21113C

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

Preview Lab → · Contrast checker → · Palette generator →

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