#21289C#21289C

#21289C is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.5% C 0.183 H 270.6°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#21289C
RGBrgb(33, 40, 156)
HSLhsl(237, 65%, 37%)
HSVhsv(237, 79%, 61%)
CMYKcmyk(78.8%, 74.4%, 0%, 38.8%)
CIE-LABlab(24.45, 39.00, -63.06)
CIE-LCHlch(24.45, 74.14, 301.74°)
OKLaboklab(36.5% 0.0018 -0.1826)
OKLCHoklch(36.5% 0.183 270.6)
XYZxyz(7.3847, 4.2404, 31.8753)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21289C #9C9521
analogous
#21669C #21289C #57219C
triadic
#21289C #9C2128 #289C21
tetradic
#21289C #9C2166 #9C9521 #219C57
square
#21289C #9C2166 #9C9521 #219C57
split-complementary
#21289C #9C5721 #669C21
monochromatic
#0C0E37 #161B69 #21289C #2C35CF #5B62DC

Accessibility & contrast

On white

11.36
#21289C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#21289C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21289C
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21289C#FFFFFF#000000##FFFFFF
##21289C1.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409F
Deuteranopia (green-blind)
#00349A
Tritanopia (blue-blind)
#004A60
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #21289c;
/* rgb */ color: rgb(33, 40, 156);
/* oklch */ color: oklch(36.5% 0.183 270.6);
Tailwind
colors: {
  custom: {
    50: '#7363ba',
    500: '#21289c',
    950: '#000000',
  },
}
SCSS
$custom: #21289c;
$custom-light: #7363ba;
$custom-dark: #000000;
JSON
{
  "hex": "#21289c",
  "rgb": {
    "r": 33,
    "g": 40,
    "b": 156
  },
  "hsl": {
    "h": 236.585,
    "s": 65.079,
    "l": 37.059
  },
  "oklch": {
    "l": 0.36503,
    "c": 0.18261,
    "h": 270.6
  },
  "luminance": 0.04241
}

Semantic roles & 50–950 ramp

primary
#21289C
secondary
#C1BB58
accent
#DE40E8
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#090512
muted
#7B7981

Preview Lab

Preview with #21289C

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

Preview Lab → · Contrast checker → · Palette generator →

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