#212E68#212E68

#212E68 is a dark, moderate blue. Relative luminance 0.033; OKLCH L 32.6% C 0.103 H 270.3°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#212E68
RGBrgb(33, 46, 104)
HSLhsl(229, 52%, 27%)
HSVhsv(229, 68%, 41%)
CMYKcmyk(68.3%, 55.8%, 0%, 59.2%)
CIE-LABlab(21.12, 15.39, -35.76)
CIE-LCHlch(21.12, 38.93, 293.29°)
OKLaboklab(32.58% 0.0005 -0.1026)
OKLCHoklch(32.58% 0.103 270.3)
XYZxyz(4.1020, 3.2764, 13.5103)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212E68 #685B21
analogous
#215268 #212E68 #382168
triadic
#212E68 #68212E #2E6821
tetradic
#212E68 #682152 #685B21 #216838
square
#212E68 #682152 #685B21 #216838
split-complementary
#212E68 #683821 #526821
monochromatic
#070A17 #12193A #212E68 #304396 #4159C3

Accessibility & contrast

On white

12.69
#212E68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#212E68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212E68
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212E68#FFFFFF#000000##FFFFFF
##212E681.0012.691.6612.69
#FFFFFF12.691.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09366A
Deuteranopia (green-blind)
#003067
Tritanopia (blue-blind)
#003C46
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #212e68;
/* rgb */ color: rgb(33, 46, 104);
/* oklch */ color: oklch(32.6% 0.103 270.3);
Tailwind
colors: {
  custom: {
    50: '#656694',
    500: '#212e68',
    950: '#000000',
  },
}
SCSS
$custom: #212e68;
$custom-light: #656694;
$custom-dark: #000000;
JSON
{
  "hex": "#212e68",
  "rgb": {
    "r": 33,
    "g": 46,
    "b": 104
  },
  "hsl": {
    "h": 229.014,
    "s": 51.825,
    "l": 26.863
  },
  "oklch": {
    "l": 0.32578,
    "c": 0.10263,
    "h": 270.3
  },
  "luminance": 0.03277
}

Semantic roles & 50–950 ramp

primary
#212E68
secondary
#9C8D49
accent
#C14DDB
background
#F6F6F9
surface
#EBEBF1
border
#C6C6CB
text
#06050D
muted
#7A7A7E

Preview Lab

Preview with #212E68

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

Preview Lab → · Contrast checker → · Palette generator →

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