#212BA7#212BA7

#212BA7 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.2% C 0.193 H 269.7°. Best body text is #FFFFFF at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#212BA7
RGBrgb(33, 43, 167)
HSLhsl(236, 67%, 39%)
HSVhsv(236, 80%, 65%)
CMYKcmyk(80.2%, 74.3%, 0%, 34.5%)
CIE-LABlab(26.27, 41.06, -66.73)
CIE-LCHlch(26.27, 78.35, 301.61°)
OKLaboklab(38.16% -0.001 -0.1933)
OKLCHoklch(38.16% 0.193 269.7)
XYZxyz(8.4637, 4.8401, 37.0399)
Luminance0.0484 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212BA7 #A79D21
analogous
#216EA7 #212BA7 #5A21A7
triadic
#212BA7 #A7212B #2BA721
tetradic
#212BA7 #A7216E #A79D21 #21A75A
square
#212BA7 #A7216E #A79D21 #21A75A
split-complementary
#212BA7 #A75A21 #6EA721
monochromatic
#0D1141 #171E74 #212BA7 #2F3CD6 #626CE0

Accessibility & contrast

On white

10.67
#212BA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#212BA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212BA7
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212BA7#FFFFFF#000000##FFFFFF
##212BA71.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AB
Deuteranopia (green-blind)
#0037A5
Tritanopia (blue-blind)
#004F66
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #212ba7;
/* rgb */ color: rgb(33, 43, 167);
/* oklch */ color: oklch(38.2% 0.193 269.7);
Tailwind
colors: {
  custom: {
    50: '#7565c2',
    500: '#212ba7',
    950: '#000000',
  },
}
SCSS
$custom: #212ba7;
$custom-light: #7565c2;
$custom-dark: #000000;
JSON
{
  "hex": "#212ba7",
  "rgb": {
    "r": 33,
    "g": 43,
    "b": 167
  },
  "hsl": {
    "h": 235.522,
    "s": 67,
    "l": 39.216
  },
  "oklch": {
    "l": 0.38156,
    "c": 0.1933,
    "h": 269.7
  },
  "luminance": 0.04841
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #212BA7

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

Preview Lab → · Contrast checker → · Palette generator →

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