#212D68#212D68

#212D68 is a dark, moderate blue. Relative luminance 0.032; OKLCH L 32.4% C 0.104 H 270.8°. Best body text is #FFFFFF at 12.80:1 contrast (WCAG AA passes).

Color values

HEX#212D68
RGBrgb(33, 45, 104)
HSLhsl(230, 52%, 27%)
HSVhsv(230, 68%, 41%)
CMYKcmyk(68.3%, 56.7%, 0%, 59.2%)
CIE-LABlab(20.82, 16.10, -36.23)
CIE-LCHlch(20.82, 39.65, 293.96°)
OKLaboklab(32.36% 0.0015 -0.104)
OKLCHoklch(32.36% 0.104 270.8)
XYZxyz(4.0634, 3.1992, 13.4974)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212D68 #685C21
analogous
#215168 #212D68 #392168
triadic
#212D68 #68212D #2D6821
tetradic
#212D68 #682151 #685C21 #216839
square
#212D68 #682151 #685C21 #216839
split-complementary
#212D68 #683921 #516821
monochromatic
#070A17 #12193A #212D68 #304196 #4157C3

Accessibility & contrast

On white

12.80
#212D68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#212D68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212D68
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212D68#FFFFFF#000000##FFFFFF
##212D681.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#05356A
Deuteranopia (green-blind)
#002F67
Tritanopia (blue-blind)
#003B45
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #212d68;
/* rgb */ color: rgb(33, 45, 104);
/* oklch */ color: oklch(32.4% 0.104 270.8);
Tailwind
colors: {
  custom: {
    50: '#656594',
    500: '#212d68',
    950: '#000000',
  },
}
SCSS
$custom: #212d68;
$custom-light: #656594;
$custom-dark: #000000;
JSON
{
  "hex": "#212d68",
  "rgb": {
    "r": 33,
    "g": 45,
    "b": 104
  },
  "hsl": {
    "h": 229.859,
    "s": 51.825,
    "l": 26.863
  },
  "oklch": {
    "l": 0.32356,
    "c": 0.10405,
    "h": 270.8
  },
  "luminance": 0.032
}

Semantic roles & 50–950 ramp

primary
#212D68
secondary
#9C8E49
accent
#C34DDB
background
#F6F6F9
surface
#EBEBF1
border
#C6C6CB
text
#06050D
muted
#7A7A7E

Preview Lab

Preview with #212D68

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

Preview Lab → · Contrast checker → · Palette generator →

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