#212D9C#212D9C

#212D9C is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.3% C 0.177 H 269.8°. Best body text is #FFFFFF at 10.94:1 contrast (WCAG AA passes).

Color values

HEX#212D9C
RGBrgb(33, 45, 156)
HSLhsl(234, 65%, 37%)
HSVhsv(234, 79%, 61%)
CMYKcmyk(78.8%, 71.2%, 0%, 38.8%)
CIE-LABlab(25.56, 35.92, -61.22)
CIE-LCHlch(25.56, 70.98, 300.40°)
OKLaboklab(37.3% -0.0005 -0.1773)
OKLCHoklch(37.3% 0.177 269.8)
XYZxyz(7.5643, 4.5996, 31.9352)
Luminance0.0460 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212D9C #9C9021
analogous
#216B9C #212D9C #52219C
triadic
#212D9C #9C212D #2D9C21
tetradic
#212D9C #9C216B #9C9021 #219C52
square
#212D9C #9C216B #9C9021 #219C52
split-complementary
#212D9C #9C5221 #6B9C21
monochromatic
#0C1037 #161E69 #212D9C #2C3CCF #5B68DC

Accessibility & contrast

On white

10.94
#212D9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#212D9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212D9C
10.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212D9C#FFFFFF#000000##FFFFFF
##212D9C1.0010.941.9210.94
#FFFFFF10.941.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439F
Deuteranopia (green-blind)
#00379A
Tritanopia (blue-blind)
#004C61
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #212d9c;
/* rgb */ color: rgb(33, 45, 156);
/* oklch */ color: oklch(37.3% 0.177 269.8);
Tailwind
colors: {
  custom: {
    50: '#7266ba',
    500: '#212d9c',
    950: '#000000',
  },
}
SCSS
$custom: #212d9c;
$custom-light: #7266ba;
$custom-dark: #000000;
JSON
{
  "hex": "#212d9c",
  "rgb": {
    "r": 33,
    "g": 45,
    "b": 156
  },
  "hsl": {
    "h": 234.146,
    "s": 65.079,
    "l": 37.059
  },
  "oklch": {
    "l": 0.373,
    "c": 0.17728,
    "h": 269.8
  },
  "luminance": 0.046
}

Semantic roles & 50–950 ramp

primary
#212D9C
secondary
#C1B658
accent
#D840E8
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090612
muted
#7B7A81

Preview Lab

Preview with #212D9C

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

Preview Lab → · Contrast checker → · Palette generator →

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