#212D9F#212D9F

#212D9F is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.6% C 0.181 H 269.7°. Best body text is #FFFFFF at 10.82:1 contrast (WCAG AA passes).

Color values

HEX#212D9F
RGBrgb(33, 45, 159)
HSLhsl(234, 66%, 38%)
HSVhsv(234, 79%, 62%)
CMYKcmyk(79.2%, 71.7%, 0%, 37.6%)
CIE-LABlab(25.87, 37.01, -62.55)
CIE-LCHlch(25.87, 72.67, 300.61°)
OKLaboklab(37.61% -0.0008 -0.1811)
OKLCHoklch(37.61% 0.181 269.7)
XYZxyz(7.8214, 4.7024, 33.2896)
Luminance0.0470 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212D9F #9F9321
analogous
#216C9F #212D9F #54219F
triadic
#212D9F #9F212D #2D9F21
tetradic
#212D9F #9F216C #9F9321 #219F54
square
#212D9F #9F216C #9F9321 #219F54
split-complementary
#212D9F #9F5421 #6C9F21
monochromatic
#0C103A #161F6C #212D9F #2C3BD2 #5D69DD

Accessibility & contrast

On white

10.82
#212D9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#212D9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212D9F
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212D9F#FFFFFF#000000##FFFFFF
##212D9F1.0010.821.9410.82
#FFFFFF10.821.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A2
Deuteranopia (green-blind)
#00379D
Tritanopia (blue-blind)
#004D63
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #212d9f;
/* rgb */ color: rgb(33, 45, 159);
/* oklch */ color: oklch(37.6% 0.181 269.7);
Tailwind
colors: {
  custom: {
    50: '#7366bd',
    500: '#212d9f',
    950: '#000000',
  },
}
SCSS
$custom: #212d9f;
$custom-light: #7366bd;
$custom-dark: #000000;
JSON
{
  "hex": "#212d9f",
  "rgb": {
    "r": 33,
    "g": 45,
    "b": 159
  },
  "hsl": {
    "h": 234.286,
    "s": 65.625,
    "l": 37.647
  },
  "oklch": {
    "l": 0.37614,
    "c": 0.18114,
    "h": 269.7
  },
  "luminance": 0.04703
}

Semantic roles & 50–950 ramp

primary
#212D9F
secondary
#C2B85A
accent
#D83FE9
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #212D9F

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

Preview Lab → · Contrast checker → · Palette generator →

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