#213F9F#213F9F

#213F9F is a dark, vivid blue. Relative luminance 0.064; OKLCH L 40.9% C 0.160 H 266.1°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#213F9F
RGBrgb(33, 63, 159)
HSLhsl(226, 66%, 38%)
HSVhsv(226, 79%, 62%)
CMYKcmyk(79.2%, 60.4%, 0%, 37.6%)
CIE-LABlab(30.35, 25.20, -55.19)
CIE-LCHlch(30.35, 60.67, 294.54°)
OKLaboklab(40.9% -0.011 -0.1595)
OKLCHoklch(40.9% 0.16 266.1)
XYZxyz(8.6605, 6.3806, 33.5693)
Luminance0.0638 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213F9F #9F8121
analogous
#217E9F #213F9F #42219F
triadic
#213F9F #9F213F #3F9F21
tetradic
#213F9F #9F217E #9F8121 #219F42
square
#213F9F #9F217E #9F8121 #219F42
split-complementary
#213F9F #9F4221 #7E9F21
monochromatic
#0C173A #162B6C #213F9F #2C53D2 #5D7CDD

Accessibility & contrast

On white

9.23
#213F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#213F9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213F9F
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213F9F#FFFFFF#000000##FFFFFF
##213F9F1.009.232.289.23
#FFFFFF9.231.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA2
Deuteranopia (green-blind)
#00429D
Tritanopia (blue-blind)
#005768
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #213f9f;
/* rgb */ color: rgb(33, 63, 159);
/* oklch */ color: oklch(40.9% 0.160 266.1);
Tailwind
colors: {
  custom: {
    50: '#7173bc',
    500: '#213f9f',
    950: '#000000',
  },
}
SCSS
$custom: #213f9f;
$custom-light: #7173bc;
$custom-dark: #000000;
JSON
{
  "hex": "#213f9f",
  "rgb": {
    "r": 33,
    "g": 63,
    "b": 159
  },
  "hsl": {
    "h": 225.714,
    "s": 65.625,
    "l": 37.647
  },
  "oklch": {
    "l": 0.40904,
    "c": 0.15988,
    "h": 266.1
  },
  "luminance": 0.06382
}

Semantic roles & 50–950 ramp

primary
#213F9F
secondary
#C2A95A
accent
#C03FE9
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #213F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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