#213BA6#213BA6

#213BA6 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.8% C 0.174 H 267.2°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#213BA6
RGBrgb(33, 59, 166)
HSLhsl(228, 67%, 39%)
HSVhsv(228, 80%, 65%)
CMYKcmyk(80.1%, 64.5%, 0%, 34.9%)
CIE-LABlab(29.92, 30.57, -60.13)
CIE-LCHlch(29.92, 67.45, 296.95°)
OKLaboklab(40.77% -0.0085 -0.174)
OKLCHoklch(40.77% 0.174 267.2)
XYZxyz(9.0717, 6.2034, 36.7883)
Luminance0.0620 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213BA6 #A68C21
analogous
#217EA6 #213BA6 #4A21A6
triadic
#213BA6 #A6213B #3BA621
tetradic
#213BA6 #A6217E #A68C21 #21A64A
square
#213BA6 #A6217E #A68C21 #21A64A
split-complementary
#213BA6 #A64A21 #7EA621
monochromatic
#0D1740 #172973 #213BA6 #2F4FD6 #627AE0

Accessibility & contrast

On white

9.37
#213BA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#213BA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213BA6
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213BA6#FFFFFF#000000##FFFFFF
##213BA61.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA9
Deuteranopia (green-blind)
#0040A4
Tritanopia (blue-blind)
#00576B
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #213ba6;
/* rgb */ color: rgb(33, 59, 166);
/* oklch */ color: oklch(40.8% 0.174 267.2);
Tailwind
colors: {
  custom: {
    50: '#7470c1',
    500: '#213ba6',
    950: '#000000',
  },
}
SCSS
$custom: #213ba6;
$custom-light: #7470c1;
$custom-dark: #000000;
JSON
{
  "hex": "#213ba6",
  "rgb": {
    "r": 33,
    "g": 59,
    "b": 166
  },
  "hsl": {
    "h": 228.271,
    "s": 66.834,
    "l": 39.02
  },
  "oklch": {
    "l": 0.40772,
    "c": 0.17422,
    "h": 267.2
  },
  "luminance": 0.06204
}

Semantic roles & 50–950 ramp

primary
#213BA6
secondary
#C5B15E
accent
#C83EEA
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #213BA6

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

Preview Lab → · Contrast checker → · Palette generator →

#213BA6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva