#213E9C#213E9C

#213E9C is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.4% C 0.157 H 266.2°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#213E9C
RGBrgb(33, 62, 156)
HSLhsl(226, 65%, 37%)
HSVhsv(226, 79%, 61%)
CMYKcmyk(78.8%, 60.3%, 0%, 38.8%)
CIE-LABlab(29.83, 24.71, -54.22)
CIE-LCHlch(29.83, 59.59, 294.50°)
OKLaboklab(40.44% -0.0104 -0.1567)
OKLCHoklch(40.44% 0.157 266.2)
XYZxyz(8.3485, 6.1679, 32.1966)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213E9C #9C7F21
analogous
#217B9C #213E9C #42219C
triadic
#213E9C #9C213E #3E9C21
tetradic
#213E9C #9C217B #9C7F21 #219C42
square
#213E9C #9C217B #9C7F21 #219C42
split-complementary
#213E9C #9C4221 #7B9C21
monochromatic
#0C1637 #162A69 #213E9C #2C52CF #5B7ADC

Accessibility & contrast

On white

9.40
#213E9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#213E9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213E9C
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213E9C#FFFFFF#000000##FFFFFF
##213E9C1.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9F
Deuteranopia (green-blind)
#00419A
Tritanopia (blue-blind)
#005667
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #213e9c;
/* rgb */ color: rgb(33, 62, 156);
/* oklch */ color: oklch(40.4% 0.157 266.2);
Tailwind
colors: {
  custom: {
    50: '#7172ba',
    500: '#213e9c',
    950: '#000000',
  },
}
SCSS
$custom: #213e9c;
$custom-light: #7172ba;
$custom-dark: #000000;
JSON
{
  "hex": "#213e9c",
  "rgb": {
    "r": 33,
    "g": 62,
    "b": 156
  },
  "hsl": {
    "h": 225.854,
    "s": 65.079,
    "l": 37.059
  },
  "oklch": {
    "l": 0.40437,
    "c": 0.15701,
    "h": 266.2
  },
  "luminance": 0.06169
}

Semantic roles & 50–950 ramp

primary
#213E9C
secondary
#C1A858
accent
#C040E8
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #213E9C

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

Preview Lab → · Contrast checker → · Palette generator →

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