#212C8F#212C8F

#212C8F is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.8% C 0.161 H 270.5°. Best body text is #FFFFFF at 11.53:1 contrast (WCAG AA passes).

Color values

HEX#212C8F
RGBrgb(33, 44, 143)
HSLhsl(234, 63%, 35%)
HSVhsv(234, 77%, 56%)
CMYKcmyk(76.9%, 69.2%, 0%, 43.9%)
CIE-LABlab(24.02, 31.79, -55.76)
CIE-LCHlch(24.02, 64.19, 299.69°)
OKLaboklab(35.79% 0.0014 -0.1613)
OKLCHoklch(35.79% 0.161 270.5)
XYZxyz(6.4841, 4.1072, 26.4323)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212C8F #8F8421
analogous
#21638F #212C8F #4D218F
triadic
#212C8F #8F212C #2C8F21
tetradic
#212C8F #8F2163 #8F8421 #218F4D
square
#212C8F #8F2163 #8F8421 #218F4D
split-complementary
#212C8F #8F4D21 #638F21
monochromatic
#0A0D2C #161D5D #212C8F #2C3BC1 #5360D7

Accessibility & contrast

On white

11.53
#212C8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#212C8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212C8F
11.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212C8F#FFFFFF#000000##FFFFFF
##212C8F1.0011.531.8211.53
#FFFFFF11.531.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E92
Deuteranopia (green-blind)
#00348D
Tritanopia (blue-blind)
#004759
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #212c8f;
/* rgb */ color: rgb(33, 44, 143);
/* oklch */ color: oklch(35.8% 0.161 270.5);
Tailwind
colors: {
  custom: {
    50: '#6f65b1',
    500: '#212c8f',
    950: '#000000',
  },
}
SCSS
$custom: #212c8f;
$custom-light: #6f65b1;
$custom-dark: #000000;
JSON
{
  "hex": "#212c8f",
  "rgb": {
    "r": 33,
    "g": 44,
    "b": 143
  },
  "hsl": {
    "h": 234,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.35792,
    "c": 0.16135,
    "h": 270.5
  },
  "luminance": 0.04108
}

Semantic roles & 50–950 ramp

primary
#212C8F
secondary
#BBB051
accent
#D542E6
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #212C8F

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

Preview Lab → · Contrast checker → · Palette generator →

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