#212DA4#212DA4

#212DA4 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.1% C 0.187 H 269.6°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#212DA4
RGBrgb(33, 45, 164)
HSLhsl(235, 66%, 39%)
HSVhsv(235, 80%, 64%)
CMYKcmyk(79.9%, 72.6%, 0%, 35.7%)
CIE-LABlab(26.39, 38.80, -64.73)
CIE-LCHlch(26.39, 75.46, 300.94°)
OKLaboklab(38.14% -0.0014 -0.1875)
OKLCHoklch(38.14% 0.187 269.6)
XYZxyz(8.2641, 4.8795, 35.6210)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212DA4 #A49821
analogous
#216EA4 #212DA4 #5621A4
triadic
#212DA4 #A4212D #2DA421
tetradic
#212DA4 #A4216E #A49821 #21A456
square
#212DA4 #A4216E #A49821 #21A456
split-complementary
#212DA4 #A45621 #6EA421
monochromatic
#0C113E #171F71 #212DA4 #2D3DD5 #606CDF

Accessibility & contrast

On white

10.63
#212DA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#212DA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212DA4
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212DA4#FFFFFF#000000##FFFFFF
##212DA41.0010.631.9810.63
#FFFFFF10.631.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A8
Deuteranopia (green-blind)
#0038A2
Tritanopia (blue-blind)
#004F65
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #212da4;
/* rgb */ color: rgb(33, 45, 164);
/* oklch */ color: oklch(38.1% 0.187 269.6);
Tailwind
colors: {
  custom: {
    50: '#7467c0',
    500: '#212da4',
    950: '#000000',
  },
}
SCSS
$custom: #212da4;
$custom-light: #7467c0;
$custom-dark: #000000;
JSON
{
  "hex": "#212da4",
  "rgb": {
    "r": 33,
    "g": 45,
    "b": 164
  },
  "hsl": {
    "h": 234.504,
    "s": 66.497,
    "l": 38.627
  },
  "oklch": {
    "l": 0.38143,
    "c": 0.18749,
    "h": 269.6
  },
  "luminance": 0.0488
}

Semantic roles & 50–950 ramp

primary
#212DA4
secondary
#C4BA5D
accent
#DA3EE9
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #212DA4

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

Preview Lab → · Contrast checker → · Palette generator →

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