#213C8E#213C8E

#213C8E is a dark, vivid blue. Relative luminance 0.055; OKLCH L 38.8% C 0.140 H 266.1°. Best body text is #FFFFFF at 9.99:1 contrast (WCAG AA passes).

Color values

HEX#213C8E
RGBrgb(33, 60, 142)
HSLhsl(225, 62%, 34%)
HSVhsv(225, 77%, 56%)
CMYKcmyk(76.8%, 57.7%, 0%, 44.3%)
CIE-LABlab(28.13, 20.58, -48.42)
CIE-LCHlch(28.13, 52.61, 293.03°)
OKLaboklab(38.81% -0.0095 -0.1397)
OKLCHoklch(38.81% 0.14 266.1)
XYZxyz(7.1238, 5.5073, 26.2735)
Luminance0.0551 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213C8E #8E7321
analogous
#21738E #213C8E #3D218E
triadic
#213C8E #8E213C #3C8E21
tetradic
#213C8E #8E2173 #8E7321 #218E3D
square
#213C8E #8E2173 #8E7321 #218E3D
split-complementary
#213C8E #8E3D21 #738E21
monochromatic
#0A122B #15275C #213C8E #2D51C0 #5273D7

Accessibility & contrast

On white

9.99
#213C8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#213C8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213C8E
9.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213C8E#FFFFFF#000000##FFFFFF
##213C8E1.009.992.109.99
#FFFFFF9.991.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004891
Deuteranopia (green-blind)
#003E8C
Tritanopia (blue-blind)
#00505F
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #213c8e;
/* rgb */ color: rgb(33, 60, 142);
/* oklch */ color: oklch(38.8% 0.140 266.1);
Tailwind
colors: {
  custom: {
    50: '#6d71b0',
    500: '#213c8e',
    950: '#000000',
  },
}
SCSS
$custom: #213c8e;
$custom-light: #6d71b0;
$custom-dark: #000000;
JSON
{
  "hex": "#213c8e",
  "rgb": {
    "r": 33,
    "g": 60,
    "b": 142
  },
  "hsl": {
    "h": 225.138,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.38805,
    "c": 0.13998,
    "h": 266.1
  },
  "luminance": 0.05508
}

Semantic roles & 50–950 ramp

primary
#213C8E
secondary
#BAA050
accent
#BD42E5
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #213C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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