#213F9D#213F9D

#213F9D is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.7% C 0.157 H 266.0°. Best body text is #FFFFFF at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#213F9D
RGBrgb(33, 63, 157)
HSLhsl(225, 65%, 37%)
HSVhsv(225, 79%, 62%)
CMYKcmyk(79%, 59.9%, 0%, 38.4%)
CIE-LABlab(30.19, 24.42, -54.25)
CIE-LCHlch(30.19, 59.49, 294.23°)
OKLaboklab(40.73% -0.011 -0.1567)
OKLCHoklch(40.73% 0.157 266)
XYZxyz(8.4884, 6.3117, 32.6627)
Luminance0.0631 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213F9D #9D7F21
analogous
#217D9D #213F9D #41219D
triadic
#213F9D #9D213F #3F9D21
tetradic
#213F9D #9D217D #9D7F21 #219D41
square
#213F9D #9D217D #9D7F21 #219D41
split-complementary
#213F9D #9D4121 #7D9D21
monochromatic
#0C1638 #162B6A #213F9D #2C53D0 #5C7BDD

Accessibility & contrast

On white

9.28
#213F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#213F9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213F9D
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213F9D#FFFFFF#000000##FFFFFF
##213F9D1.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA0
Deuteranopia (green-blind)
#00429B
Tritanopia (blue-blind)
#005767
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #213f9d;
/* rgb */ color: rgb(33, 63, 157);
/* oklch */ color: oklch(40.7% 0.157 266.0);
Tailwind
colors: {
  custom: {
    50: '#7173bb',
    500: '#213f9d',
    950: '#000000',
  },
}
SCSS
$custom: #213f9d;
$custom-light: #7173bb;
$custom-dark: #000000;
JSON
{
  "hex": "#213f9d",
  "rgb": {
    "r": 33,
    "g": 63,
    "b": 157
  },
  "hsl": {
    "h": 225.484,
    "s": 65.263,
    "l": 37.255
  },
  "oklch": {
    "l": 0.40727,
    "c": 0.15713,
    "h": 266
  },
  "luminance": 0.06313
}

Semantic roles & 50–950 ramp

primary
#213F9D
secondary
#C1A859
accent
#BF40E8
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #213F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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