#21126F#21126F

#21126F is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.3% C 0.147 H 278.7°. Best body text is #FFFFFF at 15.21:1 contrast (WCAG AA passes).

Color values

HEX#21126F
RGBrgb(33, 18, 111)
HSLhsl(250, 72%, 25%)
HSVhsv(250, 84%, 44%)
CMYKcmyk(70.3%, 83.8%, 0%, 56.5%)
CIE-LABlab(14.97, 36.14, -50.37)
CIE-LCHlch(14.97, 61.99, 305.66°)
OKLaboklab(28.32% 0.0222 -0.1455)
OKLCHoklch(28.32% 0.147 278.7)
XYZxyz(3.7118, 1.9033, 15.2076)
Luminance0.0190 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21126F #606F12
analogous
#12326F #21126F #4F126F
triadic
#21126F #6F2112 #126F21
tetradic
#21126F #6F1232 #606F12 #126F4F
square
#21126F #6F1232 #606F12 #126F4F
split-complementary
#21126F #6F4F12 #326F12
monochromatic
#08041A #11093A #21126F #311BA4 #4023D8

Accessibility & contrast

On white

15.21
#21126F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#21126F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21126F
15.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21126F#FFFFFF#000000##FFFFFF
##21126F1.0015.211.3815.21
#FFFFFF15.211.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002972
Deuteranopia (green-blind)
#00226D
Tritanopia (blue-blind)
#002F41
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #21126f;
/* rgb */ color: rgb(33, 18, 111);
/* oklch */ color: oklch(28.3% 0.147 278.7);
Tailwind
colors: {
  custom: {
    50: '#695399',
    500: '#21126f',
    950: '#000000',
  },
}
SCSS
$custom: #21126f;
$custom-light: #695399;
$custom-dark: #000000;
JSON
{
  "hex": "#21126f",
  "rgb": {
    "r": 33,
    "g": 18,
    "b": 111
  },
  "hsl": {
    "h": 249.677,
    "s": 72.093,
    "l": 25.294
  },
  "oklch": {
    "l": 0.28315,
    "c": 0.14717,
    "h": 278.7
  },
  "luminance": 0.01904
}

Semantic roles & 50–950 ramp

primary
#21126F
secondary
#94A637
accent
#EF39D1
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #21126F

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

Preview Lab → · Contrast checker → · Palette generator →

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