#212BA8#212BA8

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

Color values

HEX#212BA8
RGBrgb(33, 43, 168)
HSLhsl(236, 67%, 39%)
HSVhsv(236, 80%, 66%)
CMYKcmyk(80.4%, 74.4%, 0%, 34.1%)
CIE-LABlab(26.38, 41.41, -67.15)
CIE-LCHlch(26.38, 78.89, 301.66°)
OKLaboklab(38.27% -0.0012 -0.1945)
OKLCHoklch(38.27% 0.195 269.6)
XYZxyz(8.5565, 4.8773, 37.5286)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212BA8 #A89E21
analogous
#216EA8 #212BA8 #5B21A8
triadic
#212BA8 #A8212B #2BA821
tetradic
#212BA8 #A8216E #A89E21 #21A85B
square
#212BA8 #A8216E #A89E21 #21A85B
split-complementary
#212BA8 #A85B21 #6EA821
monochromatic
#0D1142 #171E75 #212BA8 #303CD6 #636CE0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##212BA8#FFFFFF#000000##FFFFFF
##212BA81.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)
#0045AC
Deuteranopia (green-blind)
#0038A6
Tritanopia (blue-blind)
#004F67
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #212ba8;
/* rgb */ color: rgb(33, 43, 168);
/* oklch */ color: oklch(38.3% 0.195 269.6);
Tailwind
colors: {
  custom: {
    50: '#7665c3',
    500: '#212ba8',
    950: '#000000',
  },
}
SCSS
$custom: #212ba8;
$custom-light: #7665c3;
$custom-dark: #000000;
JSON
{
  "hex": "#212ba8",
  "rgb": {
    "r": 33,
    "g": 43,
    "b": 168
  },
  "hsl": {
    "h": 235.556,
    "s": 67.164,
    "l": 39.412
  },
  "oklch": {
    "l": 0.38265,
    "c": 0.19454,
    "h": 269.6
  },
  "luminance": 0.04878
}

Semantic roles & 50–950 ramp

primary
#212BA8
secondary
#C5BE5F
accent
#DD3EEA
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0613
muted
#7C7A82

Preview Lab

Preview with #212BA8

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

Preview Lab → · Contrast checker → · Palette generator →

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