#213799#213799

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

Color values

HEX#213799
RGBrgb(33, 55, 153)
HSLhsl(229, 65%, 36%)
HSVhsv(229, 78%, 60%)
CMYKcmyk(78.4%, 64.1%, 0%, 40%)
CIE-LABlab(27.72, 28.28, -55.84)
CIE-LCHlch(27.72, 62.59, 296.85°)
OKLaboklab(38.79% -0.0058 -0.1615)
OKLCHoklch(38.79% 0.162 267.9)
XYZxyz(7.7412, 5.3547, 30.7564)
Luminance0.0536 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213799 #998321
analogous
#217399 #213799 #472199
triadic
#213799 #992137 #379921
tetradic
#213799 #992173 #998321 #219947
square
#213799 #992173 #998321 #219947
split-complementary
#213799 #994721 #739921
monochromatic
#0B1334 #162567 #213799 #2C49CB #5971DB

Accessibility & contrast

On white

10.14
#213799 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#213799 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213799
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213799#FFFFFF#000000##FFFFFF
##2137991.0010.142.0710.14
#FFFFFF10.141.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479C
Deuteranopia (green-blind)
#003C97
Tritanopia (blue-blind)
#005162
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #213799;
/* rgb */ color: rgb(33, 55, 153);
/* oklch */ color: oklch(38.8% 0.162 267.9);
Tailwind
colors: {
  custom: {
    50: '#716db8',
    500: '#213799',
    950: '#000000',
  },
}
SCSS
$custom: #213799;
$custom-light: #716db8;
$custom-dark: #000000;
JSON
{
  "hex": "#213799",
  "rgb": {
    "r": 33,
    "g": 55,
    "b": 153
  },
  "hsl": {
    "h": 229,
    "s": 64.516,
    "l": 36.471
  },
  "oklch": {
    "l": 0.3879,
    "c": 0.16161,
    "h": 267.9
  },
  "luminance": 0.05356
}

Semantic roles & 50–950 ramp

primary
#213799
secondary
#BFAC56
accent
#C940E8
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #213799

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

Preview Lab → · Contrast checker → · Palette generator →

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