#212BA4#212BA4

#212BA4 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.8% C 0.190 H 269.8°. Best body text is #FFFFFF at 10.79:1 contrast (WCAG AA passes).

Color values

HEX#212BA4
RGBrgb(33, 43, 164)
HSLhsl(235, 66%, 39%)
HSVhsv(235, 80%, 64%)
CMYKcmyk(79.9%, 73.8%, 0%, 35.7%)
CIE-LABlab(25.95, 40.01, -65.44)
CIE-LCHlch(25.95, 76.71, 301.44°)
OKLaboklab(37.83% -0.0006 -0.1896)
OKLCHoklch(37.83% 0.19 269.8)
XYZxyz(8.1896, 4.7305, 35.5962)
Luminance0.0473 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212BA4 #A49A21
analogous
#216CA4 #212BA4 #5821A4
triadic
#212BA4 #A4212B #2BA421
tetradic
#212BA4 #A4216C #A49A21 #21A458
square
#212BA4 #A4216C #A49A21 #21A458
split-complementary
#212BA4 #A45821 #6CA421
monochromatic
#0C103E #171E71 #212BA4 #2D3AD5 #606ADF

Accessibility & contrast

On white

10.79
#212BA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#212BA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212BA4
10.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212BA4#FFFFFF#000000##FFFFFF
##212BA41.0010.791.9510.79
#FFFFFF10.791.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A8
Deuteranopia (green-blind)
#0037A2
Tritanopia (blue-blind)
#004E65
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #212ba4;
/* rgb */ color: rgb(33, 43, 164);
/* oklch */ color: oklch(37.8% 0.190 269.8);
Tailwind
colors: {
  custom: {
    50: '#7565c0',
    500: '#212ba4',
    950: '#000000',
  },
}
SCSS
$custom: #212ba4;
$custom-light: #7565c0;
$custom-dark: #000000;
JSON
{
  "hex": "#212ba4",
  "rgb": {
    "r": 33,
    "g": 43,
    "b": 164
  },
  "hsl": {
    "h": 235.42,
    "s": 66.497,
    "l": 38.627
  },
  "oklch": {
    "l": 0.37831,
    "c": 0.18957,
    "h": 269.8
  },
  "luminance": 0.04731
}

Semantic roles & 50–950 ramp

primary
#212BA4
secondary
#C4BC5D
accent
#DC3EE9
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #212BA4

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

Preview Lab → · Contrast checker → · Palette generator →

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