#21389F#21389F

#21389F is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.5% C 0.168 H 267.8°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#21389F
RGBrgb(33, 56, 159)
HSLhsl(229, 66%, 38%)
HSVhsv(229, 79%, 62%)
CMYKcmyk(79.2%, 64.8%, 0%, 37.6%)
CIE-LABlab(28.52, 29.90, -58.19)
CIE-LCHlch(28.52, 65.42, 297.20°)
OKLaboklab(39.55% -0.0066 -0.1684)
OKLCHoklch(39.55% 0.168 267.8)
XYZxyz(8.2972, 5.6539, 33.4482)
Luminance0.0566 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21389F #9F8821
analogous
#21779F #21389F #49219F
triadic
#21389F #9F2138 #389F21
tetradic
#21389F #9F2177 #9F8821 #219F49
square
#21389F #9F2177 #9F8821 #219F49
split-complementary
#21389F #9F4921 #779F21
monochromatic
#0C143A #16266C #21389F #2C4AD2 #5D74DD

Accessibility & contrast

On white

9.85
#21389F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#21389F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21389F
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21389F#FFFFFF#000000##FFFFFF
##21389F1.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A2
Deuteranopia (green-blind)
#003D9D
Tritanopia (blue-blind)
#005366
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #21389f;
/* rgb */ color: rgb(33, 56, 159);
/* oklch */ color: oklch(39.5% 0.168 267.8);
Tailwind
colors: {
  custom: {
    50: '#726ebc',
    500: '#21389f',
    950: '#000000',
  },
}
SCSS
$custom: #21389f;
$custom-light: #726ebc;
$custom-dark: #000000;
JSON
{
  "hex": "#21389f",
  "rgb": {
    "r": 33,
    "g": 56,
    "b": 159
  },
  "hsl": {
    "h": 229.048,
    "s": 65.625,
    "l": 37.647
  },
  "oklch": {
    "l": 0.39547,
    "c": 0.16849,
    "h": 267.8
  },
  "luminance": 0.05655
}

Semantic roles & 50–950 ramp

primary
#21389F
secondary
#C2AF5A
accent
#CA3FE9
background
#F7F6FB
surface
#EDEBF7
border
#C8C6D0
text
#090712
muted
#7B7A81

Preview Lab

Preview with #21389F

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

Preview Lab → · Contrast checker → · Palette generator →

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