#21398C#21398C

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

Color values

HEX#21398C
RGBrgb(33, 57, 140)
HSLhsl(227, 62%, 34%)
HSVhsv(227, 76%, 55%)
CMYKcmyk(76.4%, 59.3%, 0%, 45.1%)
CIE-LABlab(27.14, 21.86, -48.81)
CIE-LCHlch(27.14, 53.48, 294.13°)
OKLaboklab(38.01% -0.0073 -0.1408)
OKLCHoklch(38.01% 0.141 267)
XYZxyz(6.8223, 5.1423, 25.4389)
Luminance0.0514 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21398C #8C7421
analogous
#216F8C #21398C #3F218C
triadic
#21398C #8C2139 #398C21
tetradic
#21398C #8C216F #8C7421 #218C3F
square
#21398C #8C216F #8C7421 #218C3F
split-complementary
#21398C #8C3F21 #6F8C21
monochromatic
#0A1129 #15255A #21398C #2D4DBE #516FD6

Accessibility & contrast

On white

10.35
#21398C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21398C
10.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21398C#FFFFFF#000000##FFFFFF
##21398C1.0010.352.0310.35
#FFFFFF10.351.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458F
Deuteranopia (green-blind)
#003B8A
Tritanopia (blue-blind)
#004E5C
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #21398c;
/* rgb */ color: rgb(33, 57, 140);
/* oklch */ color: oklch(38.0% 0.141 267.0);
Tailwind
colors: {
  custom: {
    50: '#6d6fae',
    500: '#21398c',
    950: '#000000',
  },
}
SCSS
$custom: #21398c;
$custom-light: #6d6fae;
$custom-dark: #000000;
JSON
{
  "hex": "#21398c",
  "rgb": {
    "r": 33,
    "g": 57,
    "b": 140
  },
  "hsl": {
    "h": 226.542,
    "s": 61.85,
    "l": 33.922
  },
  "oklch": {
    "l": 0.38006,
    "c": 0.14103,
    "h": 267
  },
  "luminance": 0.05143
}

Semantic roles & 50–950 ramp

primary
#21398C
secondary
#B9A24F
accent
#C143E5
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #21398C

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

Preview Lab → · Contrast checker → · Palette generator →

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