#212BAF#212BAF

#212BAF is a dark, highly saturated blue. Relative luminance 0.051; OKLCH L 39.0% C 0.203 H 269.4°. Best body text is #FFFFFF at 10.35:1 contrast (WCAG AA passes).

Color values

HEX#212BAF
RGBrgb(33, 43, 175)
HSLhsl(236, 68%, 41%)
HSVhsv(236, 81%, 69%)
CMYKcmyk(81.1%, 75.4%, 0%, 31.4%)
CIE-LABlab(27.14, 43.82, -70.10)
CIE-LCHlch(27.14, 82.67, 302.01°)
OKLaboklab(39.03% -0.0022 -0.2031)
OKLCHoklch(39.03% 0.203 269.4)
XYZxyz(9.2263, 5.1452, 41.0560)
Luminance0.0515 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212BAF #AFA521
analogous
#2172AF #212BAF #5E21AF
triadic
#212BAF #AF212B #2BAF21
tetradic
#212BAF #AF2172 #AFA521 #21AF5E
square
#212BAF #AF2172 #AFA521 #21AF5E
split-complementary
#212BAF #AF5E21 #72AF21
monochromatic
#0E1248 #171E7C #212BAF #3440D9 #6871E3

Accessibility & contrast

On white

10.35
#212BAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#212BAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212BAF
10.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212BAF#FFFFFF#000000##FFFFFF
##212BAF1.0010.352.0310.35
#FFFFFF10.351.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.351.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #212baf;
/* rgb */ color: rgb(33, 43, 175);
/* oklch */ color: oklch(39.0% 0.203 269.4);
Tailwind
colors: {
  custom: {
    50: '#7766c8',
    500: '#212baf',
    950: '#000000',
  },
}
SCSS
$custom: #212baf;
$custom-light: #7766c8;
$custom-dark: #000000;
JSON
{
  "hex": "#212baf",
  "rgb": {
    "r": 33,
    "g": 43,
    "b": 175
  },
  "hsl": {
    "h": 235.775,
    "s": 68.269,
    "l": 40.784
  },
  "oklch": {
    "l": 0.39032,
    "c": 0.20311,
    "h": 269.4
  },
  "luminance": 0.05146
}

Semantic roles & 50–950 ramp

primary
#212BAF
secondary
#C8C164
accent
#DF3DEB
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #212BAF

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

Preview Lab → · Contrast checker → · Palette generator →

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