#21398D#21398D

#21398D is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.1% C 0.142 H 267.1°. Best body text is #FFFFFF at 10.32:1 contrast (WCAG AA passes).

Color values

HEX#21398D
RGBrgb(33, 57, 141)
HSLhsl(227, 62%, 34%)
HSVhsv(227, 77%, 55%)
CMYKcmyk(76.6%, 59.6%, 0%, 44.7%)
CIE-LABlab(27.22, 22.26, -49.29)
CIE-LCHlch(27.22, 54.08, 294.30°)
OKLaboklab(38.09% -0.0072 -0.1423)
OKLCHoklch(38.09% 0.142 267.1)
XYZxyz(6.8964, 5.1719, 25.8290)
Luminance0.0517 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21398D #8D7521
analogous
#216F8D #21398D #3F218D
triadic
#21398D #8D2139 #398D21
tetradic
#21398D #8D216F #8D7521 #218D3F
square
#21398D #8D216F #8D7521 #218D3F
split-complementary
#21398D #8D3F21 #6F8D21
monochromatic
#0A112A #15255B #21398D #2D4DBF #526FD6

Accessibility & contrast

On white

10.32
#21398D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#21398D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21398D
10.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21398D#FFFFFF#000000##FFFFFF
##21398D1.0010.322.0310.32
#FFFFFF10.321.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004590
Deuteranopia (green-blind)
#003B8B
Tritanopia (blue-blind)
#004E5D
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #21398d;
/* rgb */ color: rgb(33, 57, 141);
/* oklch */ color: oklch(38.1% 0.142 267.1);
Tailwind
colors: {
  custom: {
    50: '#6d6faf',
    500: '#21398d',
    950: '#000000',
  },
}
SCSS
$custom: #21398d;
$custom-light: #6d6faf;
$custom-dark: #000000;
JSON
{
  "hex": "#21398d",
  "rgb": {
    "r": 33,
    "g": 57,
    "b": 141
  },
  "hsl": {
    "h": 226.667,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.38094,
    "c": 0.14244,
    "h": 267.1
  },
  "luminance": 0.05173
}

Semantic roles & 50–950 ramp

primary
#21398D
secondary
#BAA250
accent
#C143E5
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #21398D

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

Preview Lab → · Contrast checker → · Palette generator →

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