#213898#213898

#213898 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 38.9% C 0.159 H 267.7°. Best body text is #FFFFFF at 10.08:1 contrast (WCAG AA passes).

Color values

HEX#213898
RGBrgb(33, 56, 152)
HSLhsl(228, 64%, 36%)
HSVhsv(228, 78%, 60%)
CMYKcmyk(78.3%, 63.2%, 0%, 40.4%)
CIE-LABlab(27.89, 27.22, -54.95)
CIE-LCHlch(27.89, 61.32, 296.35°)
OKLaboklab(38.89% -0.0064 -0.1589)
OKLCHoklch(38.89% 0.159 267.7)
XYZxyz(7.7069, 5.4178, 30.3392)
Luminance0.0542 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213898 #988121
analogous
#217498 #213898 #462198
triadic
#213898 #982138 #389821
tetradic
#213898 #982174 #988121 #219846
square
#213898 #982174 #988121 #219846
split-complementary
#213898 #984621 #749821
monochromatic
#0B1333 #162566 #213898 #2C4BCA #5972DB

Accessibility & contrast

On white

10.08
#213898 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#213898 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213898
10.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213898#FFFFFF#000000##FFFFFF
##2138981.0010.082.0810.08
#FFFFFF10.081.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.081.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #213898;
/* rgb */ color: rgb(33, 56, 152);
/* oklch */ color: oklch(38.9% 0.159 267.7);
Tailwind
colors: {
  custom: {
    50: '#706eb7',
    500: '#213898',
    950: '#000000',
  },
}
SCSS
$custom: #213898;
$custom-light: #706eb7;
$custom-dark: #000000;
JSON
{
  "hex": "#213898",
  "rgb": {
    "r": 33,
    "g": 56,
    "b": 152
  },
  "hsl": {
    "h": 228.403,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.38889,
    "c": 0.15902,
    "h": 267.7
  },
  "luminance": 0.05419
}

Semantic roles & 50–950 ramp

primary
#213898
secondary
#BFAB56
accent
#C740E7
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #213898

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

Preview Lab → · Contrast checker → · Palette generator →

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