#21389E#21389E

#21389E is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.5% C 0.167 H 267.7°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#21389E
RGBrgb(33, 56, 158)
HSLhsl(229, 65%, 37%)
HSVhsv(229, 79%, 62%)
CMYKcmyk(79.1%, 64.6%, 0%, 38%)
CIE-LABlab(28.43, 29.52, -57.73)
CIE-LCHlch(28.43, 64.84, 297.08°)
OKLaboklab(39.45% -0.0066 -0.167)
OKLCHoklch(39.45% 0.167 267.7)
XYZxyz(8.2108, 5.6194, 32.9930)
Luminance0.0562 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21389E #9E8721
analogous
#21779E #21389E #49219E
triadic
#21389E #9E2138 #389E21
tetradic
#21389E #9E2177 #9E8721 #219E49
square
#21389E #9E2177 #9E8721 #219E49
split-complementary
#21389E #9E4921 #779E21
monochromatic
#0C1439 #16266B #21389E #2C4AD1 #5C74DD

Accessibility & contrast

On white

9.89
#21389E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#21389E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21389E
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21389E#FFFFFF#000000##FFFFFF
##21389E1.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A1
Deuteranopia (green-blind)
#003D9C
Tritanopia (blue-blind)
#005365
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #21389e;
/* rgb */ color: rgb(33, 56, 158);
/* oklch */ color: oklch(39.5% 0.167 267.7);
Tailwind
colors: {
  custom: {
    50: '#726ebc',
    500: '#21389e',
    950: '#000000',
  },
}
SCSS
$custom: #21389e;
$custom-light: #726ebc;
$custom-dark: #000000;
JSON
{
  "hex": "#21389e",
  "rgb": {
    "r": 33,
    "g": 56,
    "b": 158
  },
  "hsl": {
    "h": 228.96,
    "s": 65.445,
    "l": 37.451
  },
  "oklch": {
    "l": 0.39452,
    "c": 0.16715,
    "h": 267.7
  },
  "luminance": 0.0562
}

Semantic roles & 50–950 ramp

primary
#21389E
secondary
#C1AE59
accent
#C93FE8
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090712
muted
#7B7A81

Preview Lab

Preview with #21389E

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

Preview Lab → · Contrast checker → · Palette generator →

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