#213998#213998

#213998 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.1% C 0.158 H 267.4°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#213998
RGBrgb(33, 57, 152)
HSLhsl(228, 64%, 36%)
HSVhsv(228, 78%, 60%)
CMYKcmyk(78.3%, 62.5%, 0%, 40.4%)
CIE-LABlab(28.16, 26.54, -54.52)
CIE-LCHlch(28.16, 60.64, 295.96°)
OKLaboklab(39.08% -0.0071 -0.1576)
OKLCHoklch(39.08% 0.158 267.4)
XYZxyz(7.7558, 5.5157, 30.3556)
Luminance0.0552 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213998 #988021
analogous
#217598 #213998 #452198
triadic
#213998 #982139 #399821
tetradic
#213998 #982175 #988021 #219845
square
#213998 #982175 #988021 #219845
split-complementary
#213998 #984521 #759821
monochromatic
#0B1333 #162666 #213998 #2C4CCA #5973DB

Accessibility & contrast

On white

9.98
#213998 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#213998 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213998
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213998#FFFFFF#000000##FFFFFF
##2139981.009.982.109.98
#FFFFFF9.981.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489B
Deuteranopia (green-blind)
#003D96
Tritanopia (blue-blind)
#005163
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #213998;
/* rgb */ color: rgb(33, 57, 152);
/* oklch */ color: oklch(39.1% 0.158 267.4);
Tailwind
colors: {
  custom: {
    50: '#706fb7',
    500: '#213998',
    950: '#000000',
  },
}
SCSS
$custom: #213998;
$custom-light: #706fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#213998",
  "rgb": {
    "r": 33,
    "g": 57,
    "b": 152
  },
  "hsl": {
    "h": 227.899,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.39084,
    "c": 0.15778,
    "h": 267.4
  },
  "luminance": 0.05517
}

Semantic roles & 50–950 ramp

primary
#213998
secondary
#BFAA56
accent
#C640E7
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #213998

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

Preview Lab → · Contrast checker → · Palette generator →

#213998 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva