#212EA5#212EA5

#212EA5 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.4% C 0.188 H 269.4°. Best body text is #FFFFFF at 10.51:1 contrast (WCAG AA passes).

Color values

HEX#212EA5
RGBrgb(33, 46, 165)
HSLhsl(234, 67%, 39%)
HSVhsv(234, 80%, 65%)
CMYKcmyk(80%, 72.1%, 0%, 35.3%)
CIE-LABlab(26.71, 38.54, -64.79)
CIE-LCHlch(26.71, 75.39, 300.75°)
OKLaboklab(38.41% -0.002 -0.1877)
OKLCHoklch(38.41% 0.188 269.4)
XYZxyz(8.3934, 4.9930, 36.1114)
Luminance0.0499 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212EA5 #A59821
analogous
#2170A5 #212EA5 #5621A5
triadic
#212EA5 #A5212E #2EA521
tetradic
#212EA5 #A52170 #A59821 #21A556
square
#212EA5 #A52170 #A59821 #21A556
split-complementary
#212EA5 #A55621 #70A521
monochromatic
#0D123F #172072 #212EA5 #2E3ED5 #616DDF

Accessibility & contrast

On white

10.51
#212EA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#212EA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212EA5
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212EA5#FFFFFF#000000##FFFFFF
##212EA51.0010.512.0010.51
#FFFFFF10.511.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A9
Deuteranopia (green-blind)
#0039A3
Tritanopia (blue-blind)
#005066
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #212ea5;
/* rgb */ color: rgb(33, 46, 165);
/* oklch */ color: oklch(38.4% 0.188 269.4);
Tailwind
colors: {
  custom: {
    50: '#7467c1',
    500: '#212ea5',
    950: '#000000',
  },
}
SCSS
$custom: #212ea5;
$custom-light: #7467c1;
$custom-dark: #000000;
JSON
{
  "hex": "#212ea5",
  "rgb": {
    "r": 33,
    "g": 46,
    "b": 165
  },
  "hsl": {
    "h": 234.091,
    "s": 66.667,
    "l": 38.824
  },
  "oklch": {
    "l": 0.38408,
    "c": 0.18769,
    "h": 269.4
  },
  "luminance": 0.04994
}

Semantic roles & 50–950 ramp

primary
#212EA5
secondary
#C4BA5E
accent
#D93EEA
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #212EA5

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

Preview Lab → · Contrast checker → · Palette generator →

#212EA5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva