#21398B#21398B

#21398B is a dark, vivid blue. Relative luminance 0.051; OKLCH L 37.9% C 0.140 H 267.0°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#21398B
RGBrgb(33, 57, 139)
HSLhsl(226, 62%, 34%)
HSVhsv(226, 76%, 55%)
CMYKcmyk(76.3%, 59%, 0%, 45.5%)
CIE-LABlab(27.05, 21.47, -48.32)
CIE-LCHlch(27.05, 52.88, 293.95°)
OKLaboklab(37.92% -0.0073 -0.1394)
OKLCHoklch(37.92% 0.14 267)
XYZxyz(6.7489, 5.1129, 25.0523)
Luminance0.0511 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21398B #8B7321
analogous
#216E8B #21398B #3E218B
triadic
#21398B #8B2139 #398B21
tetradic
#21398B #8B216E #8B7321 #218B3E
square
#21398B #8B216E #8B7321 #218B3E
split-complementary
#21398B #8B3E21 #6E8B21
monochromatic
#0A1028 #15255A #21398B #2D4DBC #516FD6

Accessibility & contrast

On white

10.38
#21398B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#21398B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21398B
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21398B#FFFFFF#000000##FFFFFF
##21398B1.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458E
Deuteranopia (green-blind)
#003B89
Tritanopia (blue-blind)
#004D5C
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #21398b;
/* rgb */ color: rgb(33, 57, 139);
/* oklch */ color: oklch(37.9% 0.140 267.0);
Tailwind
colors: {
  custom: {
    50: '#6d6fae',
    500: '#21398b',
    950: '#000000',
  },
}
SCSS
$custom: #21398b;
$custom-light: #6d6fae;
$custom-dark: #000000;
JSON
{
  "hex": "#21398b",
  "rgb": {
    "r": 33,
    "g": 57,
    "b": 139
  },
  "hsl": {
    "h": 226.415,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.37919,
    "c": 0.13961,
    "h": 267
  },
  "luminance": 0.05114
}

Semantic roles & 50–950 ramp

primary
#21398B
secondary
#B9A14F
accent
#C043E5
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #21398B

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

Preview Lab → · Contrast checker → · Palette generator →

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