#21289B#21289B

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

Color values

HEX#21289B
RGBrgb(33, 40, 155)
HSLhsl(237, 65%, 37%)
HSVhsv(237, 79%, 61%)
CMYKcmyk(78.7%, 74.2%, 0%, 39.2%)
CIE-LABlab(24.34, 38.65, -62.62)
CIE-LCHlch(24.34, 73.59, 301.68°)
OKLaboklab(36.39% 0.0019 -0.1813)
OKLCHoklch(36.39% 0.181 270.6)
XYZxyz(7.3004, 4.2067, 31.4312)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21289B #9B9421
analogous
#21659B #21289B #57219B
triadic
#21289B #9B2128 #289B21
tetradic
#21289B #9B2165 #9B9421 #219B57
square
#21289B #9B2165 #9B9421 #219B57
split-complementary
#21289B #9B5721 #659B21
monochromatic
#0C0E36 #161B69 #21289B #2C35CD #5A62DC

Accessibility & contrast

On white

11.40
#21289B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#21289B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21289B
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21289B#FFFFFF#000000##FFFFFF
##21289B1.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409E
Deuteranopia (green-blind)
#003499
Tritanopia (blue-blind)
#00495F
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #21289b;
/* rgb */ color: rgb(33, 40, 155);
/* oklch */ color: oklch(36.4% 0.181 270.6);
Tailwind
colors: {
  custom: {
    50: '#7263ba',
    500: '#21289b',
    950: '#000000',
  },
}
SCSS
$custom: #21289b;
$custom-light: #7263ba;
$custom-dark: #000000;
JSON
{
  "hex": "#21289b",
  "rgb": {
    "r": 33,
    "g": 40,
    "b": 155
  },
  "hsl": {
    "h": 236.557,
    "s": 64.894,
    "l": 36.863
  },
  "oklch": {
    "l": 0.36394,
    "c": 0.18135,
    "h": 270.6
  },
  "luminance": 0.04207
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #21289B

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

Preview Lab → · Contrast checker → · Palette generator →

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