#21389B#21389B

#21389B is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.2% C 0.163 H 267.7°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#21389B
RGBrgb(33, 56, 155)
HSLhsl(229, 65%, 37%)
HSVhsv(229, 79%, 61%)
CMYKcmyk(78.7%, 63.9%, 0%, 39.2%)
CIE-LABlab(28.16, 28.37, -56.35)
CIE-LCHlch(28.16, 63.09, 296.73°)
OKLaboklab(39.17% -0.0065 -0.163)
OKLCHoklch(39.17% 0.163 267.7)
XYZxyz(7.9557, 5.5173, 31.6497)
Luminance0.0552 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21389B #9B8421
analogous
#21759B #21389B #47219B
triadic
#21389B #9B2138 #389B21
tetradic
#21389B #9B2175 #9B8421 #219B47
square
#21389B #9B2175 #9B8421 #219B47
split-complementary
#21389B #9B4721 #759B21
monochromatic
#0C1436 #162669 #21389B #2C4ACD #5A73DC

Accessibility & contrast

On white

9.98
#21389B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#21389B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21389B
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21389B#FFFFFF#000000##FFFFFF
##21389B1.009.982.109.98
#FFFFFF9.981.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489E
Deuteranopia (green-blind)
#003D99
Tritanopia (blue-blind)
#005264
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #21389b;
/* rgb */ color: rgb(33, 56, 155);
/* oklch */ color: oklch(39.2% 0.163 267.7);
Tailwind
colors: {
  custom: {
    50: '#716eb9',
    500: '#21389b',
    950: '#000000',
  },
}
SCSS
$custom: #21389b;
$custom-light: #716eb9;
$custom-dark: #000000;
JSON
{
  "hex": "#21389b",
  "rgb": {
    "r": 33,
    "g": 56,
    "b": 155
  },
  "hsl": {
    "h": 228.689,
    "s": 64.894,
    "l": 36.863
  },
  "oklch": {
    "l": 0.39169,
    "c": 0.1631,
    "h": 267.7
  },
  "luminance": 0.05518
}

Semantic roles & 50–950 ramp

primary
#21389B
secondary
#C0AC58
accent
#C840E8
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090712
muted
#7B7A81

Preview Lab

Preview with #21389B

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

Preview Lab → · Contrast checker → · Palette generator →

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