#21398E#21398E

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

Color values

HEX#21398E
RGBrgb(33, 57, 142)
HSLhsl(227, 62%, 34%)
HSVhsv(227, 77%, 56%)
CMYKcmyk(76.8%, 59.9%, 0%, 44.3%)
CIE-LABlab(27.30, 22.65, -49.77)
CIE-LCHlch(27.30, 54.68, 294.47°)
OKLaboklab(38.18% -0.0072 -0.1437)
OKLCHoklch(38.18% 0.144 267.1)
XYZxyz(6.9711, 5.2018, 26.2226)
Luminance0.0520 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21398E #8E7621
analogous
#21708E #21398E #40218E
triadic
#21398E #8E2139 #398E21
tetradic
#21398E #8E2170 #8E7621 #218E40
square
#21398E #8E2170 #8E7621 #218E40
split-complementary
#21398E #8E4021 #708E21
monochromatic
#0A112B #15255C #21398E #2D4DC0 #5270D7

Accessibility & contrast

On white

10.29
#21398E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#21398E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21398E
10.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21398E#FFFFFF#000000##FFFFFF
##21398E1.0010.292.0410.29
#FFFFFF10.291.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.291.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #21398e;
/* rgb */ color: rgb(33, 57, 142);
/* oklch */ color: oklch(38.2% 0.144 267.1);
Tailwind
colors: {
  custom: {
    50: '#6e6fb0',
    500: '#21398e',
    950: '#000000',
  },
}
SCSS
$custom: #21398e;
$custom-light: #6e6fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#21398e",
  "rgb": {
    "r": 33,
    "g": 57,
    "b": 142
  },
  "hsl": {
    "h": 226.789,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.38182,
    "c": 0.14386,
    "h": 267.1
  },
  "luminance": 0.05203
}

Semantic roles & 50–950 ramp

primary
#21398E
secondary
#BAA350
accent
#C142E5
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #21398E

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

Preview Lab → · Contrast checker → · Palette generator →

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