#212966#212966

#212966 is a dark, moderate blue. Relative luminance 0.029; OKLCH L 31.3% C 0.107 H 273.0°. Best body text is #FFFFFF at 13.34:1 contrast (WCAG AA passes).

Color values

HEX#212966
RGBrgb(33, 41, 102)
HSLhsl(233, 51%, 26%)
HSVhsv(233, 68%, 40%)
CMYKcmyk(67.6%, 59.8%, 0%, 60%)
CIE-LABlab(19.51, 18.18, -37.06)
CIE-LCHlch(19.51, 41.28, 296.13°)
OKLaboklab(31.32% 0.0055 -0.1065)
OKLCHoklch(31.32% 0.107 273)
XYZxyz(3.8176, 2.8682, 12.9202)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212966 #665E21
analogous
#214C66 #212966 #3C2166
triadic
#212966 #662129 #296621
tetradic
#212966 #66214C #665E21 #21663C
square
#212966 #66214C #665E21 #21663C
split-complementary
#212966 #663C21 #4C6621
monochromatic
#070917 #121638 #212966 #303C94 #404FC1

Accessibility & contrast

On white

13.34
#212966 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#212966 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212966
13.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212966#FFFFFF#000000##FFFFFF
##2129661.0013.341.5713.34
#FFFFFF13.341.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003268
Deuteranopia (green-blind)
#002C65
Tritanopia (blue-blind)
#003843
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #212966;
/* rgb */ color: rgb(33, 41, 102);
/* oklch */ color: oklch(31.3% 0.107 273.0);
Tailwind
colors: {
  custom: {
    50: '#656292',
    500: '#212966',
    950: '#000000',
  },
}
SCSS
$custom: #212966;
$custom-light: #656292;
$custom-dark: #000000;
JSON
{
  "hex": "#212966",
  "rgb": {
    "r": 33,
    "g": 41,
    "b": 102
  },
  "hsl": {
    "h": 233.043,
    "s": 51.111,
    "l": 26.471
  },
  "oklch": {
    "l": 0.31319,
    "c": 0.10667,
    "h": 273
  },
  "luminance": 0.02869
}

Semantic roles & 50–950 ramp

primary
#212966
secondary
#9A9149
accent
#CA4DDB
background
#F6F5F9
surface
#EBEAF1
border
#C6C6CB
text
#06050D
muted
#7A797E

Preview Lab

Preview with #212966

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

Preview Lab → · Contrast checker → · Palette generator →

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