#21389D#21389D

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

Color values

HEX#21389D
RGBrgb(33, 56, 157)
HSLhsl(229, 65%, 37%)
HSVhsv(229, 79%, 62%)
CMYKcmyk(79%, 64.3%, 0%, 38.4%)
CIE-LABlab(28.34, 29.14, -57.27)
CIE-LCHlch(28.34, 64.25, 296.96°)
OKLaboklab(39.36% -0.0065 -0.1657)
OKLCHoklch(39.36% 0.166 267.7)
XYZxyz(8.1251, 5.5851, 32.5416)
Luminance0.0559 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21389D #9D8621
analogous
#21769D #21389D #48219D
triadic
#21389D #9D2138 #389D21
tetradic
#21389D #9D2176 #9D8621 #219D48
square
#21389D #9D2176 #9D8621 #219D48
split-complementary
#21389D #9D4821 #769D21
monochromatic
#0C1438 #16266A #21389D #2C4AD0 #5C74DD

Accessibility & contrast

On white

9.92
#21389D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21389D
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21389D#FFFFFF#000000##FFFFFF
##21389D1.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A0
Deuteranopia (green-blind)
#003D9B
Tritanopia (blue-blind)
#005265
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #21389d;
/* rgb */ color: rgb(33, 56, 157);
/* oklch */ color: oklch(39.4% 0.166 267.7);
Tailwind
colors: {
  custom: {
    50: '#716ebb',
    500: '#21389d',
    950: '#000000',
  },
}
SCSS
$custom: #21389d;
$custom-light: #716ebb;
$custom-dark: #000000;
JSON
{
  "hex": "#21389d",
  "rgb": {
    "r": 33,
    "g": 56,
    "b": 157
  },
  "hsl": {
    "h": 228.871,
    "s": 65.263,
    "l": 37.255
  },
  "oklch": {
    "l": 0.39357,
    "c": 0.1658,
    "h": 267.7
  },
  "luminance": 0.05586
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #21389D

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

Preview Lab → · Contrast checker → · Palette generator →

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