#212A68#212A68

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

Color values

HEX#212A68
RGBrgb(33, 42, 104)
HSLhsl(232, 52%, 27%)
HSVhsv(232, 68%, 41%)
CMYKcmyk(68.3%, 59.6%, 0%, 59.2%)
CIE-LABlab(19.96, 18.25, -37.64)
CIE-LCHlch(19.96, 41.83, 295.86°)
OKLaboklab(31.71% 0.0046 -0.1082)
OKLCHoklch(31.71% 0.108 272.4)
XYZxyz(3.9530, 2.9784, 13.4606)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212A68 #685F21
analogous
#214E68 #212A68 #3C2168
triadic
#212A68 #68212A #2A6821
tetradic
#212A68 #68214E #685F21 #21683C
square
#212A68 #68214E #685F21 #21683C
split-complementary
#212A68 #683C21 #4E6821
monochromatic
#070917 #12173A #212A68 #303D96 #4151C3

Accessibility & contrast

On white

13.16
#212A68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#212A68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212A68
13.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212A68#FFFFFF#000000##FFFFFF
##212A681.0013.161.6013.16
#FFFFFF13.161.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336A
Deuteranopia (green-blind)
#002D67
Tritanopia (blue-blind)
#003944
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #212a68;
/* rgb */ color: rgb(33, 42, 104);
/* oklch */ color: oklch(31.7% 0.108 272.4);
Tailwind
colors: {
  custom: {
    50: '#656394',
    500: '#212a68',
    950: '#000000',
  },
}
SCSS
$custom: #212a68;
$custom-light: #656394;
$custom-dark: #000000;
JSON
{
  "hex": "#212a68",
  "rgb": {
    "r": 33,
    "g": 42,
    "b": 104
  },
  "hsl": {
    "h": 232.394,
    "s": 51.825,
    "l": 26.863
  },
  "oklch": {
    "l": 0.31706,
    "c": 0.10832,
    "h": 272.4
  },
  "luminance": 0.02979
}

Semantic roles & 50–950 ramp

primary
#212A68
secondary
#9C9149
accent
#C94DDB
background
#F6F5F9
surface
#EBEAF1
border
#C6C6CB
text
#06050D
muted
#7A797E

Preview Lab

Preview with #212A68

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

Preview Lab → · Contrast checker → · Palette generator →

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