#212BAA#212BAA

#212BAA is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.5% C 0.197 H 269.6°. Best body text is #FFFFFF at 10.55:1 contrast (WCAG AA passes).

Color values

HEX#212BAA
RGBrgb(33, 43, 170)
HSLhsl(236, 67%, 40%)
HSVhsv(236, 81%, 67%)
CMYKcmyk(80.6%, 74.7%, 0%, 33.3%)
CIE-LABlab(26.60, 42.10, -68.00)
CIE-LCHlch(26.60, 79.98, 301.76°)
OKLaboklab(38.48% -0.0015 -0.197)
OKLCHoklch(38.48% 0.197 269.6)
XYZxyz(8.7443, 4.9524, 38.5175)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212BAA #AAA021
analogous
#2170AA #212BAA #5B21AA
triadic
#212BAA #AA212B #2BAA21
tetradic
#212BAA #AA2170 #AAA021 #21AA5B
square
#212BAA #AA2170 #AAA021 #21AA5B
split-complementary
#212BAA #AA5B21 #70AA21
monochromatic
#0D1143 #171E77 #212BAA #313DD7 #646EE1

Accessibility & contrast

On white

10.55
#212BAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#212BAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212BAA
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212BAA#FFFFFF#000000##FFFFFF
##212BAA1.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AE
Deuteranopia (green-blind)
#0038A8
Tritanopia (blue-blind)
#005068
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #212baa;
/* rgb */ color: rgb(33, 43, 170);
/* oklch */ color: oklch(38.5% 0.197 269.6);
Tailwind
colors: {
  custom: {
    50: '#7666c5',
    500: '#212baa',
    950: '#000000',
  },
}
SCSS
$custom: #212baa;
$custom-light: #7666c5;
$custom-dark: #000000;
JSON
{
  "hex": "#212baa",
  "rgb": {
    "r": 33,
    "g": 43,
    "b": 170
  },
  "hsl": {
    "h": 235.62,
    "s": 67.488,
    "l": 39.804
  },
  "oklch": {
    "l": 0.38483,
    "c": 0.19701,
    "h": 269.6
  },
  "luminance": 0.04953
}

Semantic roles & 50–950 ramp

primary
#212BAA
secondary
#C6BF61
accent
#DE3DEA
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0613
muted
#7C7A82

Preview Lab

Preview with #212BAA

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

Preview Lab → · Contrast checker → · Palette generator →

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