#212D60#212D60

#212D60 is a dark, moderate blue. Relative luminance 0.030; OKLCH L 31.7% C 0.092 H 270.5°. Best body text is #FFFFFF at 13.05:1 contrast (WCAG AA passes).

Color values

HEX#212D60
RGBrgb(33, 45, 96)
HSLhsl(229, 49%, 25%)
HSVhsv(229, 66%, 38%)
CMYKcmyk(65.6%, 53.1%, 0%, 62.4%)
CIE-LABlab(20.22, 12.97, -31.97)
CIE-LCHlch(20.22, 34.50, 292.08°)
OKLaboklab(31.71% 0.0007 -0.0915)
OKLCHoklch(31.71% 0.092 270.5)
XYZxyz(3.6762, 3.0443, 11.4579)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212D60 #605421
analogous
#214D60 #212D60 #342160
triadic
#212D60 #60212D #2D6021
tetradic
#212D60 #60214D #605421 #216034
square
#212D60 #60214D #605421 #216034
split-complementary
#212D60 #603421 #4D6021
monochromatic
#080B17 #111832 #212D60 #31428E #4058BB

Accessibility & contrast

On white

13.05
#212D60 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#212D60 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212D60
13.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212D60#FFFFFF#000000##FFFFFF
##212D601.0013.051.6113.05
#FFFFFF13.051.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#123462
Deuteranopia (green-blind)
#052E5F
Tritanopia (blue-blind)
#003942
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #212d60;
/* rgb */ color: rgb(33, 45, 96);
/* oklch */ color: oklch(31.7% 0.092 270.5);
Tailwind
colors: {
  custom: {
    50: '#63658d',
    500: '#212d60',
    950: '#000000',
  },
}
SCSS
$custom: #212d60;
$custom-light: #63658d;
$custom-dark: #000000;
JSON
{
  "hex": "#212d60",
  "rgb": {
    "r": 33,
    "g": 45,
    "b": 96
  },
  "hsl": {
    "h": 228.571,
    "s": 48.837,
    "l": 25.294
  },
  "oklch": {
    "l": 0.31707,
    "c": 0.09152,
    "h": 270.5
  },
  "luminance": 0.03045
}

Semantic roles & 50–950 ramp

primary
#212D60
secondary
#948649
accent
#BE4FD8
background
#F6F6F8
surface
#EBEBF0
border
#C6C6CB
text
#06050C
muted
#7A7A7D

Preview Lab

Preview with #212D60

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

Preview Lab → · Contrast checker → · Palette generator →

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