#21289E#21289E

#21289E is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.7% C 0.185 H 270.5°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#21289E
RGBrgb(33, 40, 158)
HSLhsl(237, 65%, 37%)
HSVhsv(237, 79%, 62%)
CMYKcmyk(79.1%, 74.7%, 0%, 38%)
CIE-LABlab(24.67, 39.70, -63.92)
CIE-LCHlch(24.67, 75.25, 301.84°)
OKLaboklab(36.72% 0.0015 -0.1851)
OKLCHoklch(36.72% 0.185 270.5)
XYZxyz(7.5554, 4.3087, 32.7746)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21289E #9E9721
analogous
#21679E #21289E #59219E
triadic
#21289E #9E2128 #289E21
tetradic
#21289E #9E2167 #9E9721 #219E59
square
#21289E #9E2167 #9E9721 #219E59
split-complementary
#21289E #9E5921 #679E21
monochromatic
#0C0E39 #161B6B #21289E #2C35D1 #5C64DD

Accessibility & contrast

On white

11.28
#21289E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#21289E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21289E
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21289E#FFFFFF#000000##FFFFFF
##21289E1.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A1
Deuteranopia (green-blind)
#00349C
Tritanopia (blue-blind)
#004A61
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #21289e;
/* rgb */ color: rgb(33, 40, 158);
/* oklch */ color: oklch(36.7% 0.185 270.5);
Tailwind
colors: {
  custom: {
    50: '#7363bc',
    500: '#21289e',
    950: '#000000',
  },
}
SCSS
$custom: #21289e;
$custom-light: #7363bc;
$custom-dark: #000000;
JSON
{
  "hex": "#21289e",
  "rgb": {
    "r": 33,
    "g": 40,
    "b": 158
  },
  "hsl": {
    "h": 236.64,
    "s": 65.445,
    "l": 37.451
  },
  "oklch": {
    "l": 0.36721,
    "c": 0.18513,
    "h": 270.5
  },
  "luminance": 0.0431
}

Semantic roles & 50–950 ramp

primary
#21289E
secondary
#C1BC59
accent
#DF3FE8
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #21289E

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

Preview Lab → · Contrast checker → · Palette generator →

#21289E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva