#21126D#21126D

#21126D is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.1% C 0.145 H 279.1°. Best body text is #FFFFFF at 15.31:1 contrast (WCAG AA passes).

Color values

HEX#21126D
RGBrgb(33, 18, 109)
HSLhsl(250, 72%, 25%)
HSVhsv(250, 83%, 43%)
CMYKcmyk(69.7%, 83.5%, 0%, 57.3%)
CIE-LABlab(14.73, 35.49, -49.46)
CIE-LCHlch(14.73, 60.87, 305.66°)
OKLaboklab(28.08% 0.0229 -0.1428)
OKLCHoklch(28.08% 0.145 279.1)
XYZxyz(3.6029, 1.8598, 14.6341)
Luminance0.0186 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21126D #5E6D12
analogous
#12316D #21126D #4F126D
triadic
#21126D #6D2112 #126D21
tetradic
#21126D #6D1231 #5E6D12 #126D4F
square
#21126D #6D1231 #5E6D12 #126D4F
split-complementary
#21126D #6D4F12 #316D12
monochromatic
#08041A #110938 #21126D #311BA2 #4123D6

Accessibility & contrast

On white

15.31
#21126D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#21126D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21126D
15.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21126D#FFFFFF#000000##FFFFFF
##21126D1.0015.311.3715.31
#FFFFFF15.311.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002870
Deuteranopia (green-blind)
#00216B
Tritanopia (blue-blind)
#002E40
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #21126d;
/* rgb */ color: rgb(33, 18, 109);
/* oklch */ color: oklch(28.1% 0.145 279.1);
Tailwind
colors: {
  custom: {
    50: '#695398',
    500: '#21126d',
    950: '#000000',
  },
}
SCSS
$custom: #21126d;
$custom-light: #695398;
$custom-dark: #000000;
JSON
{
  "hex": "#21126d",
  "rgb": {
    "r": 33,
    "g": 18,
    "b": 109
  },
  "hsl": {
    "h": 249.89,
    "s": 71.654,
    "l": 24.902
  },
  "oklch": {
    "l": 0.28079,
    "c": 0.14465,
    "h": 279.1
  },
  "luminance": 0.0186
}

Semantic roles & 50–950 ramp

primary
#21126D
secondary
#92A437
accent
#EE39D1
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #21126D

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

Preview Lab → · Contrast checker → · Palette generator →

#21126D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva