#213798#213798

#213798 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.7% C 0.160 H 267.9°. Best body text is #FFFFFF at 10.17:1 contrast (WCAG AA passes).

Color values

HEX#213798
RGBrgb(33, 55, 152)
HSLhsl(229, 64%, 36%)
HSVhsv(229, 78%, 60%)
CMYKcmyk(78.3%, 63.8%, 0%, 40.4%)
CIE-LABlab(27.63, 27.89, -55.38)
CIE-LCHlch(27.63, 62.01, 296.73°)
OKLaboklab(38.7% -0.0058 -0.1601)
OKLCHoklch(38.7% 0.16 267.9)
XYZxyz(7.6589, 5.3219, 30.3232)
Luminance0.0532 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213798 #988221
analogous
#217398 #213798 #472198
triadic
#213798 #982137 #379821
tetradic
#213798 #982173 #988221 #219847
square
#213798 #982173 #988221 #219847
split-complementary
#213798 #984721 #739821
monochromatic
#0B1333 #162566 #213798 #2C49CA #5971DB

Accessibility & contrast

On white

10.17
#213798 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#213798 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213798
10.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213798#FFFFFF#000000##FFFFFF
##2137981.0010.172.0610.17
#FFFFFF10.171.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479B
Deuteranopia (green-blind)
#003C96
Tritanopia (blue-blind)
#005062
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #213798;
/* rgb */ color: rgb(33, 55, 152);
/* oklch */ color: oklch(38.7% 0.160 267.9);
Tailwind
colors: {
  custom: {
    50: '#706db7',
    500: '#213798',
    950: '#000000',
  },
}
SCSS
$custom: #213798;
$custom-light: #706db7;
$custom-dark: #000000;
JSON
{
  "hex": "#213798",
  "rgb": {
    "r": 33,
    "g": 55,
    "b": 152
  },
  "hsl": {
    "h": 228.908,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.38696,
    "c": 0.16025,
    "h": 267.9
  },
  "luminance": 0.05323
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #213798

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

Preview Lab → · Contrast checker → · Palette generator →

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