#21398F#21398F

#21398F is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.3% C 0.145 H 267.2°. Best body text is #FFFFFF at 10.26:1 contrast (WCAG AA passes).

Color values

HEX#21398F
RGBrgb(33, 57, 143)
HSLhsl(227, 63%, 35%)
HSVhsv(227, 77%, 56%)
CMYKcmyk(76.9%, 60.1%, 0%, 43.9%)
CIE-LABlab(27.39, 23.04, -50.26)
CIE-LCHlch(27.39, 55.28, 294.63°)
OKLaboklab(38.27% -0.0072 -0.1451)
OKLCHoklch(38.27% 0.145 267.2)
XYZxyz(7.0465, 5.2320, 26.6198)
Luminance0.0523 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21398F #8F7721
analogous
#21708F #21398F #40218F
triadic
#21398F #8F2139 #398F21
tetradic
#21398F #8F2170 #8F7721 #218F40
square
#21398F #8F2170 #8F7721 #218F40
split-complementary
#21398F #8F4021 #708F21
monochromatic
#0A112C #16255D #21398F #2C4DC1 #5370D7

Accessibility & contrast

On white

10.26
#21398F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#21398F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21398F
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21398F#FFFFFF#000000##FFFFFF
##21398F1.0010.262.0510.26
#FFFFFF10.261.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004692
Deuteranopia (green-blind)
#003C8D
Tritanopia (blue-blind)
#004F5E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #21398f;
/* rgb */ color: rgb(33, 57, 143);
/* oklch */ color: oklch(38.3% 0.145 267.2);
Tailwind
colors: {
  custom: {
    50: '#6e6fb1',
    500: '#21398f',
    950: '#000000',
  },
}
SCSS
$custom: #21398f;
$custom-light: #6e6fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#21398f",
  "rgb": {
    "r": 33,
    "g": 57,
    "b": 143
  },
  "hsl": {
    "h": 226.909,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.38271,
    "c": 0.14527,
    "h": 267.2
  },
  "luminance": 0.05233
}

Semantic roles & 50–950 ramp

primary
#21398F
secondary
#BBA451
accent
#C242E6
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#080711
muted
#7B7A80

Preview Lab

Preview with #21398F

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

Preview Lab → · Contrast checker → · Palette generator →

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