#21399B#21399B

#21399B is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.4% C 0.162 H 267.5°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#21399B
RGBrgb(33, 57, 155)
HSLhsl(228, 65%, 37%)
HSVhsv(228, 79%, 61%)
CMYKcmyk(78.7%, 63.2%, 0%, 39.2%)
CIE-LABlab(28.42, 27.70, -55.92)
CIE-LCHlch(28.42, 62.41, 296.35°)
OKLaboklab(39.36% -0.0071 -0.1617)
OKLCHoklch(39.36% 0.162 267.5)
XYZxyz(8.0047, 5.6152, 31.6660)
Luminance0.0562 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21399B #9B8321
analogous
#21769B #21399B #46219B
triadic
#21399B #9B2139 #399B21
tetradic
#21399B #9B2176 #9B8321 #219B46
square
#21399B #9B2176 #9B8321 #219B46
split-complementary
#21399B #9B4621 #769B21
monochromatic
#0C1436 #162669 #21399B #2C4CCD #5A74DC

Accessibility & contrast

On white

9.89
#21399B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#21399B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21399B
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21399B#FFFFFF#000000##FFFFFF
##21399B1.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)
#00499E
Deuteranopia (green-blind)
#003D99
Tritanopia (blue-blind)
#005264
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #21399b;
/* rgb */ color: rgb(33, 57, 155);
/* oklch */ color: oklch(39.4% 0.162 267.5);
Tailwind
colors: {
  custom: {
    50: '#716fb9',
    500: '#21399b',
    950: '#000000',
  },
}
SCSS
$custom: #21399b;
$custom-light: #716fb9;
$custom-dark: #000000;
JSON
{
  "hex": "#21399b",
  "rgb": {
    "r": 33,
    "g": 57,
    "b": 155
  },
  "hsl": {
    "h": 228.197,
    "s": 64.894,
    "l": 36.863
  },
  "oklch": {
    "l": 0.39361,
    "c": 0.16187,
    "h": 267.5
  },
  "luminance": 0.05616
}

Semantic roles & 50–950 ramp

primary
#21399B
secondary
#C0AC58
accent
#C740E8
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090712
muted
#7B7A81

Preview Lab

Preview with #21399B

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

Preview Lab → · Contrast checker → · Palette generator →

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