#21145A#21145A

#21145A is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.2% C 0.118 H 283.2°. Best body text is #FFFFFF at 16.00:1 contrast (WCAG AA passes).

Color values

HEX#21145A
RGBrgb(33, 20, 90)
HSLhsl(251, 64%, 22%)
HSVhsv(251, 78%, 35%)
CMYKcmyk(63.3%, 77.8%, 0%, 64.7%)
CIE-LABlab(12.99, 28.00, -39.73)
CIE-LCHlch(12.99, 48.60, 305.18°)
OKLaboklab(26.22% 0.0269 -0.1144)
OKLCHoklch(26.22% 0.118 283.2)
XYZxyz(2.7222, 1.5617, 9.8289)
Luminance0.0156 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21145A #4D5A14
analogous
#142A5A #21145A #44145A
triadic
#21145A #5A2114 #145A21
tetradic
#21145A #5A142A #4D5A14 #145A44
square
#21145A #5A142A #4D5A14 #145A44
split-complementary
#21145A #5A4414 #2A5A14
monochromatic
#090619 #0F0928 #21145A #331F8C #462ABE

Accessibility & contrast

On white

16.00
#21145A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#21145A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21145A
16.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21145A#FFFFFF#000000##FFFFFF
##21145A1.0016.001.3116.00
#FFFFFF16.001.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245C
Deuteranopia (green-blind)
#001F59
Tritanopia (blue-blind)
#012735
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #21145a;
/* rgb */ color: rgb(33, 20, 90);
/* oklch */ color: oklch(26.2% 0.118 283.2);
Tailwind
colors: {
  custom: {
    50: '#645389',
    500: '#21145a',
    950: '#000000',
  },
}
SCSS
$custom: #21145a;
$custom-light: #645389;
$custom-dark: #000000;
JSON
{
  "hex": "#21145a",
  "rgb": {
    "r": 33,
    "g": 20,
    "b": 90
  },
  "hsl": {
    "h": 251.143,
    "s": 63.636,
    "l": 21.569
  },
  "oklch": {
    "l": 0.2622,
    "c": 0.11756,
    "h": 283.2
  },
  "luminance": 0.01562
}

Semantic roles & 50–950 ramp

primary
#21145A
secondary
#819238
accent
#E741C8
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #21145A

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

Preview Lab → · Contrast checker → · Palette generator →

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