#212866#212866

#212866 is a dark, moderate blue. Relative luminance 0.028; OKLCH L 31.1% C 0.108 H 273.5°. Best body text is #FFFFFF at 13.46:1 contrast (WCAG AA passes).

Color values

HEX#212866
RGBrgb(33, 40, 102)
HSLhsl(234, 51%, 26%)
HSVhsv(234, 68%, 40%)
CMYKcmyk(67.6%, 60.8%, 0%, 60%)
CIE-LABlab(19.22, 18.89, -37.52)
CIE-LCHlch(19.22, 42.01, 296.73°)
OKLaboklab(31.11% 0.0066 -0.1079)
OKLCHoklch(31.11% 0.108 273.5)
XYZxyz(3.7835, 2.7999, 12.9088)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212866 #665F21
analogous
#214B66 #212866 #3D2166
triadic
#212866 #662128 #286621
tetradic
#212866 #66214B #665F21 #21663D
square
#212866 #66214B #665F21 #21663D
split-complementary
#212866 #663D21 #4B6621
monochromatic
#070917 #121638 #212866 #303A94 #404DC1

Accessibility & contrast

On white

13.46
#212866 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#212866 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212866
13.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212866#FFFFFF#000000##FFFFFF
##2128661.0013.461.5613.46
#FFFFFF13.461.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.461.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #212866;
/* rgb */ color: rgb(33, 40, 102);
/* oklch */ color: oklch(31.1% 0.108 273.5);
Tailwind
colors: {
  custom: {
    50: '#656192',
    500: '#212866',
    950: '#000000',
  },
}
SCSS
$custom: #212866;
$custom-light: #656192;
$custom-dark: #000000;
JSON
{
  "hex": "#212866",
  "rgb": {
    "r": 33,
    "g": 40,
    "b": 102
  },
  "hsl": {
    "h": 233.913,
    "s": 51.111,
    "l": 26.471
  },
  "oklch": {
    "l": 0.31107,
    "c": 0.1081,
    "h": 273.5
  },
  "luminance": 0.028
}

Semantic roles & 50–950 ramp

primary
#212866
secondary
#9A9249
accent
#CC4DDB
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#06050D
muted
#7A797E

Preview Lab

Preview with #212866

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

Preview Lab → · Contrast checker → · Palette generator →

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