#212AAF#212AAF

#212AAF is a dark, highly saturated blue. Relative luminance 0.051; OKLCH L 38.9% C 0.204 H 269.5°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#212AAF
RGBrgb(33, 42, 175)
HSLhsl(236, 68%, 41%)
HSVhsv(236, 81%, 69%)
CMYKcmyk(81.1%, 76%, 0%, 31.4%)
CIE-LABlab(26.94, 44.40, -70.44)
CIE-LCHlch(26.94, 83.26, 302.22°)
OKLaboklab(38.89% -0.0019 -0.2041)
OKLCHoklch(38.89% 0.204 269.5)
XYZxyz(9.1904, 5.0733, 41.0440)
Luminance0.0507 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212AAF #AFA621
analogous
#2171AF #212AAF #5F21AF
triadic
#212AAF #AF212A #2AAF21
tetradic
#212AAF #AF2171 #AFA621 #21AF5F
square
#212AAF #AF2171 #AFA621 #21AF5F
split-complementary
#212AAF #AF5F21 #71AF21
monochromatic
#0E1148 #171E7C #212AAF #343FD9 #6870E3

Accessibility & contrast

On white

10.42
#212AAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #212AAF
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212AAF#FFFFFF#000000##FFFFFF
##212AAF1.0010.422.0110.42
#FFFFFF10.421.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047B3
Deuteranopia (green-blind)
#0038AD
Tritanopia (blue-blind)
#00526B
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #212aaf;
/* rgb */ color: rgb(33, 42, 175);
/* oklch */ color: oklch(38.9% 0.204 269.5);
Tailwind
colors: {
  custom: {
    50: '#7765c8',
    500: '#212aaf',
    950: '#000000',
  },
}
SCSS
$custom: #212aaf;
$custom-light: #7765c8;
$custom-dark: #000000;
JSON
{
  "hex": "#212aaf",
  "rgb": {
    "r": 33,
    "g": 42,
    "b": 175
  },
  "hsl": {
    "h": 236.197,
    "s": 68.269,
    "l": 40.784
  },
  "oklch": {
    "l": 0.38889,
    "c": 0.20407,
    "h": 269.5
  },
  "luminance": 0.05074
}

Semantic roles & 50–950 ramp

primary
#212AAF
secondary
#C8C264
accent
#E03DEB
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #212AAF

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

Preview Lab → · Contrast checker → · Palette generator →

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