#212C68#212C68

#212C68 is a dark, moderate blue. Relative luminance 0.031; OKLCH L 32.1% C 0.105 H 271.4°. Best body text is #FFFFFF at 12.92:1 contrast (WCAG AA passes).

Color values

HEX#212C68
RGBrgb(33, 44, 104)
HSLhsl(231, 52%, 27%)
HSVhsv(231, 68%, 41%)
CMYKcmyk(68.3%, 57.7%, 0%, 59.2%)
CIE-LABlab(20.53, 16.82, -36.70)
CIE-LCHlch(20.53, 40.37, 294.62°)
OKLaboklab(32.14% 0.0026 -0.1054)
OKLCHoklch(32.14% 0.105 271.4)
XYZxyz(4.0257, 3.1238, 13.4848)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212C68 #685D21
analogous
#215068 #212C68 #3A2168
triadic
#212C68 #68212C #2C6821
tetradic
#212C68 #682150 #685D21 #21683A
square
#212C68 #682150 #685D21 #21683A
split-complementary
#212C68 #683A21 #506821
monochromatic
#070A17 #12183A #212C68 #304096 #4155C3

Accessibility & contrast

On white

12.92
#212C68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#212C68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212C68
12.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212C68#FFFFFF#000000##FFFFFF
##212C681.0012.921.6212.92
#FFFFFF12.921.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02356A
Deuteranopia (green-blind)
#002E67
Tritanopia (blue-blind)
#003A45
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #212c68;
/* rgb */ color: rgb(33, 44, 104);
/* oklch */ color: oklch(32.1% 0.105 271.4);
Tailwind
colors: {
  custom: {
    50: '#656494',
    500: '#212c68',
    950: '#000000',
  },
}
SCSS
$custom: #212c68;
$custom-light: #656494;
$custom-dark: #000000;
JSON
{
  "hex": "#212c68",
  "rgb": {
    "r": 33,
    "g": 44,
    "b": 104
  },
  "hsl": {
    "h": 230.704,
    "s": 51.825,
    "l": 26.863
  },
  "oklch": {
    "l": 0.32137,
    "c": 0.10548,
    "h": 271.4
  },
  "luminance": 0.03124
}

Semantic roles & 50–950 ramp

primary
#212C68
secondary
#9C8F49
accent
#C54DDB
background
#F6F6F9
surface
#EBEBF1
border
#C6C6CB
text
#06050D
muted
#7A7A7E

Preview Lab

Preview with #212C68

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

Preview Lab → · Contrast checker → · Palette generator →

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