#212EA7#212EA7

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

Color values

HEX#212EA7
RGBrgb(33, 46, 167)
HSLhsl(234, 67%, 39%)
HSVhsv(234, 80%, 65%)
CMYKcmyk(80.2%, 72.5%, 0%, 34.5%)
CIE-LABlab(26.92, 39.25, -65.66)
CIE-LCHlch(26.92, 76.50, 300.87°)
OKLaboklab(38.62% -0.0022 -0.1902)
OKLCHoklch(38.62% 0.19 269.3)
XYZxyz(8.5769, 5.0664, 37.0776)
Luminance0.0507 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212EA7 #A79A21
analogous
#2171A7 #212EA7 #5721A7
triadic
#212EA7 #A7212E #2EA721
tetradic
#212EA7 #A72171 #A79A21 #21A757
square
#212EA7 #A72171 #A79A21 #21A757
split-complementary
#212EA7 #A75721 #71A721
monochromatic
#0D1241 #172074 #212EA7 #2F3FD6 #626FE0

Accessibility & contrast

On white

10.43
#212EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#212EA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212EA7
10.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212EA7#FFFFFF#000000##FFFFFF
##212EA71.0010.432.0110.43
#FFFFFF10.431.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AB
Deuteranopia (green-blind)
#0039A5
Tritanopia (blue-blind)
#005167
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #212ea7;
/* rgb */ color: rgb(33, 46, 167);
/* oklch */ color: oklch(38.6% 0.190 269.3);
Tailwind
colors: {
  custom: {
    50: '#7567c2',
    500: '#212ea7',
    950: '#000000',
  },
}
SCSS
$custom: #212ea7;
$custom-light: #7567c2;
$custom-dark: #000000;
JSON
{
  "hex": "#212ea7",
  "rgb": {
    "r": 33,
    "g": 46,
    "b": 167
  },
  "hsl": {
    "h": 234.179,
    "s": 67,
    "l": 39.216
  },
  "oklch": {
    "l": 0.3862,
    "c": 0.19021,
    "h": 269.3
  },
  "luminance": 0.05067
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #212EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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