#213897#213897

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

Color values

HEX#213897
RGBrgb(33, 56, 151)
HSLhsl(228, 64%, 36%)
HSVhsv(228, 78%, 59%)
CMYKcmyk(78.1%, 62.9%, 0%, 40.8%)
CIE-LABlab(27.81, 26.83, -54.48)
CIE-LCHlch(27.81, 60.73, 296.22°)
OKLaboklab(38.8% -0.0064 -0.1575)
OKLCHoklch(38.8% 0.158 267.7)
XYZxyz(7.6253, 5.3852, 29.9097)
Luminance0.0539 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213897 #978021
analogous
#217397 #213897 #452197
triadic
#213897 #972138 #389721
tetradic
#213897 #972173 #978021 #219745
square
#213897 #972173 #978021 #219745
split-complementary
#213897 #974521 #739721
monochromatic
#0B1333 #162565 #213897 #2C4BC9 #5871DA

Accessibility & contrast

On white

10.11
#213897 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #213897
10.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213897#FFFFFF#000000##FFFFFF
##2138971.0010.112.0810.11
#FFFFFF10.111.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479A
Deuteranopia (green-blind)
#003C95
Tritanopia (blue-blind)
#005162
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #213897;
/* rgb */ color: rgb(33, 56, 151);
/* oklch */ color: oklch(38.8% 0.158 267.7);
Tailwind
colors: {
  custom: {
    50: '#706eb6',
    500: '#213897',
    950: '#000000',
  },
}
SCSS
$custom: #213897;
$custom-light: #706eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#213897",
  "rgb": {
    "r": 33,
    "g": 56,
    "b": 151
  },
  "hsl": {
    "h": 228.305,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.38796,
    "c": 0.15765,
    "h": 267.7
  },
  "luminance": 0.05386
}

Semantic roles & 50–950 ramp

primary
#213897
secondary
#BEAA55
accent
#C741E7
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #213897

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

Preview Lab → · Contrast checker → · Palette generator →

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