#212EA8#212EA8

#212EA8 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.7% C 0.191 H 269.3°. Best body text is #FFFFFF at 10.39:1 contrast (WCAG AA passes).

Color values

HEX#212EA8
RGBrgb(33, 46, 168)
HSLhsl(234, 67%, 39%)
HSVhsv(234, 80%, 66%)
CMYKcmyk(80.4%, 72.6%, 0%, 34.1%)
CIE-LABlab(27.03, 39.61, -66.09)
CIE-LCHlch(27.03, 77.05, 300.94°)
OKLaboklab(38.73% -0.0024 -0.1914)
OKLCHoklch(38.73% 0.191 269.3)
XYZxyz(8.6697, 5.1035, 37.5663)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212EA8 #A89B21
analogous
#2172A8 #212EA8 #5821A8
triadic
#212EA8 #A8212E #2EA821
tetradic
#212EA8 #A82172 #A89B21 #21A858
square
#212EA8 #A82172 #A89B21 #21A858
split-complementary
#212EA8 #A85821 #72A821
monochromatic
#0D1242 #172075 #212EA8 #3040D6 #636FE0

Accessibility & contrast

On white

10.39
#212EA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#212EA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212EA8
10.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212EA8#FFFFFF#000000##FFFFFF
##212EA81.0010.392.0210.39
#FFFFFF10.391.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AC
Deuteranopia (green-blind)
#0039A6
Tritanopia (blue-blind)
#005168
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #212ea8;
/* rgb */ color: rgb(33, 46, 168);
/* oklch */ color: oklch(38.7% 0.191 269.3);
Tailwind
colors: {
  custom: {
    50: '#7567c3',
    500: '#212ea8',
    950: '#000000',
  },
}
SCSS
$custom: #212ea8;
$custom-light: #7567c3;
$custom-dark: #000000;
JSON
{
  "hex": "#212ea8",
  "rgb": {
    "r": 33,
    "g": 46,
    "b": 168
  },
  "hsl": {
    "h": 234.222,
    "s": 67.164,
    "l": 39.412
  },
  "oklch": {
    "l": 0.38726,
    "c": 0.19146,
    "h": 269.3
  },
  "luminance": 0.05104
}

Semantic roles & 50–950 ramp

primary
#212EA8
secondary
#C5BC5F
accent
#D93EEA
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0613
muted
#7C7A82

Preview Lab

Preview with #212EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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