#212968#212968

#212968 is a dark, moderate blue. Relative luminance 0.029; OKLCH L 31.5% C 0.110 H 272.9°. Best body text is #FFFFFF at 13.28:1 contrast (WCAG AA passes).

Color values

HEX#212968
RGBrgb(33, 41, 104)
HSLhsl(233, 52%, 27%)
HSVhsv(233, 68%, 41%)
CMYKcmyk(68.3%, 60.6%, 0%, 59.2%)
CIE-LABlab(19.67, 18.96, -38.10)
CIE-LCHlch(19.67, 42.55, 296.46°)
OKLaboklab(31.49% 0.0056 -0.1096)
OKLCHoklch(31.49% 0.11 272.9)
XYZxyz(3.9180, 2.9083, 13.4489)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212968 #686021
analogous
#214D68 #212968 #3D2168
triadic
#212968 #682129 #296821
tetradic
#212968 #68214D #686021 #21683D
square
#212968 #68214D #686021 #21683D
split-complementary
#212968 #683D21 #4D6821
monochromatic
#070917 #12173A #212968 #303B96 #414FC3

Accessibility & contrast

On white

13.28
#212968 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#212968 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212968
13.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212968#FFFFFF#000000##FFFFFF
##2129681.0013.281.5813.28
#FFFFFF13.281.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.281.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #212968;
/* rgb */ color: rgb(33, 41, 104);
/* oklch */ color: oklch(31.5% 0.110 272.9);
Tailwind
colors: {
  custom: {
    50: '#656294',
    500: '#212968',
    950: '#000000',
  },
}
SCSS
$custom: #212968;
$custom-light: #656294;
$custom-dark: #000000;
JSON
{
  "hex": "#212968",
  "rgb": {
    "r": 33,
    "g": 41,
    "b": 104
  },
  "hsl": {
    "h": 233.239,
    "s": 51.825,
    "l": 26.863
  },
  "oklch": {
    "l": 0.31494,
    "c": 0.10973,
    "h": 272.9
  },
  "luminance": 0.02909
}

Semantic roles & 50–950 ramp

primary
#212968
secondary
#9C9349
accent
#CB4DDB
background
#F6F5F9
surface
#EBEAF1
border
#C6C6CB
text
#06050D
muted
#7A797E

Preview Lab

Preview with #212968

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

Preview Lab → · Contrast checker → · Palette generator →

#212968 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva