#21135F#21135F

#21135F is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.6% C 0.125 H 282.1°. Best body text is #FFFFFF at 15.87:1 contrast (WCAG AA passes).

Color values

HEX#21135F
RGBrgb(33, 19, 95)
HSLhsl(251, 67%, 22%)
HSVhsv(251, 80%, 37%)
CMYKcmyk(65.3%, 80%, 0%, 62.7%)
CIE-LABlab(13.32, 30.30, -42.54)
CIE-LCHlch(13.32, 52.23, 305.46°)
OKLaboklab(26.62% 0.0264 -0.1227)
OKLCHoklch(26.62% 0.125 282.1)
XYZxyz(2.9250, 1.6151, 10.9819)
Luminance0.0162 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21135F #515F13
analogous
#132B5F #21135F #47135F
triadic
#21135F #5F2113 #135F21
tetradic
#21135F #5F132B #515F13 #135F47
square
#21135F #5F132B #515F13 #135F47
split-complementary
#21135F #5F4713 #2B5F13
monochromatic
#09051A #0F092C #21135F #331D92 #4427C5

Accessibility & contrast

On white

15.87
#21135F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#21135F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21135F
15.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21135F#FFFFFF#000000##FFFFFF
##21135F1.0015.871.3215.87
#FFFFFF15.871.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002561
Deuteranopia (green-blind)
#001F5E
Tritanopia (blue-blind)
#002938
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #21135f;
/* rgb */ color: rgb(33, 19, 95);
/* oklch */ color: oklch(26.6% 0.125 282.1);
Tailwind
colors: {
  custom: {
    50: '#66538d',
    500: '#21135f',
    950: '#000000',
  },
}
SCSS
$custom: #21135f;
$custom-light: #66538d;
$custom-dark: #000000;
JSON
{
  "hex": "#21135f",
  "rgb": {
    "r": 33,
    "g": 19,
    "b": 95
  },
  "hsl": {
    "h": 251.053,
    "s": 66.667,
    "l": 22.353
  },
  "oklch": {
    "l": 0.26615,
    "c": 0.12548,
    "h": 282.1
  },
  "luminance": 0.01615
}

Semantic roles & 50–950 ramp

primary
#21135F
secondary
#859737
accent
#EA3ECA
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #21135F

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

Preview Lab → · Contrast checker → · Palette generator →

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