#213DA7#213DA7

#213DA7 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.2% C 0.173 H 266.8°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#213DA7
RGBrgb(33, 61, 167)
HSLhsl(227, 67%, 39%)
HSVhsv(227, 80%, 65%)
CMYKcmyk(80.2%, 63.5%, 0%, 34.5%)
CIE-LABlab(30.52, 29.62, -59.74)
CIE-LCHlch(30.52, 66.69, 296.37°)
OKLaboklab(41.24% -0.0097 -0.1729)
OKLCHoklch(41.24% 0.173 266.8)
XYZxyz(9.2686, 6.4498, 37.3082)
Luminance0.0645 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213DA7 #A78B21
analogous
#2180A7 #213DA7 #4821A7
triadic
#213DA7 #A7213D #3DA721
tetradic
#213DA7 #A72180 #A78B21 #21A748
square
#213DA7 #A72180 #A78B21 #21A748
split-complementary
#213DA7 #A74821 #80A721
monochromatic
#0D1841 #172A74 #213DA7 #2F52D6 #627DE0

Accessibility & contrast

On white

9.17
#213DA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#213DA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213DA7
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213DA7#FFFFFF#000000##FFFFFF
##213DA71.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAA
Deuteranopia (green-blind)
#0042A5
Tritanopia (blue-blind)
#00596C
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #213da7;
/* rgb */ color: rgb(33, 61, 167);
/* oklch */ color: oklch(41.2% 0.173 266.8);
Tailwind
colors: {
  custom: {
    50: '#7472c2',
    500: '#213da7',
    950: '#000000',
  },
}
SCSS
$custom: #213da7;
$custom-light: #7472c2;
$custom-dark: #000000;
JSON
{
  "hex": "#213da7",
  "rgb": {
    "r": 33,
    "g": 61,
    "b": 167
  },
  "hsl": {
    "h": 227.463,
    "s": 67,
    "l": 39.216
  },
  "oklch": {
    "l": 0.41243,
    "c": 0.17314,
    "h": 266.8
  },
  "luminance": 0.06451
}

Semantic roles & 50–950 ramp

primary
#213DA7
secondary
#C5B05F
accent
#C63EEA
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #213DA7

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

Preview Lab → · Contrast checker → · Palette generator →

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