#213DA2#213DA2

#213DA2 is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.8% C 0.166 H 266.7°. Best body text is #FFFFFF at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#213DA2
RGBrgb(33, 61, 162)
HSLhsl(227, 66%, 38%)
HSVhsv(227, 80%, 64%)
CMYKcmyk(79.6%, 62.3%, 0%, 36.5%)
CIE-LABlab(30.08, 27.71, -57.45)
CIE-LCHlch(30.08, 63.78, 295.75°)
OKLaboklab(40.78% -0.0097 -0.1661)
OKLCHoklch(40.78% 0.166 266.7)
XYZxyz(8.8152, 6.2684, 34.9207)
Luminance0.0627 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213DA2 #A28621
analogous
#217DA2 #213DA2 #4521A2
triadic
#213DA2 #A2213D #3DA221
tetradic
#213DA2 #A2217D #A28621 #21A245
square
#213DA2 #A2217D #A28621 #21A245
split-complementary
#213DA2 #A24521 #7DA221
monochromatic
#0C173C #172A6F #213DA2 #2C51D4 #5F7BDE

Accessibility & contrast

On white

9.32
#213DA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#213DA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213DA2
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213DA2#FFFFFF#000000##FFFFFF
##213DA21.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA5
Deuteranopia (green-blind)
#0041A0
Tritanopia (blue-blind)
#005769
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #213da2;
/* rgb */ color: rgb(33, 61, 162);
/* oklch */ color: oklch(40.8% 0.166 266.7);
Tailwind
colors: {
  custom: {
    50: '#7272be',
    500: '#213da2',
    950: '#000000',
  },
}
SCSS
$custom: #213da2;
$custom-light: #7272be;
$custom-dark: #000000;
JSON
{
  "hex": "#213da2",
  "rgb": {
    "r": 33,
    "g": 61,
    "b": 162
  },
  "hsl": {
    "h": 226.977,
    "s": 66.154,
    "l": 38.235
  },
  "oklch": {
    "l": 0.40781,
    "c": 0.16643,
    "h": 266.7
  },
  "luminance": 0.06269
}

Semantic roles & 50–950 ramp

primary
#213DA2
secondary
#C3AD5C
accent
#C43FE9
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#090712
muted
#7B7A81

Preview Lab

Preview with #213DA2

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

Preview Lab → · Contrast checker → · Palette generator →

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