#212266#212266

#212266 is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.9% C 0.116 H 276.1°. Best body text is #FFFFFF at 14.14:1 contrast (WCAG AA passes).

Color values

HEX#212266
RGBrgb(33, 34, 102)
HSLhsl(239, 51%, 26%)
HSVhsv(239, 68%, 40%)
CMYKcmyk(67.6%, 66.7%, 0%, 60%)
CIE-LABlab(17.58, 23.11, -40.19)
CIE-LCHlch(17.58, 46.36, 299.90°)
OKLaboklab(29.89% 0.0124 -0.1158)
OKLCHoklch(29.89% 0.116 276.1)
XYZxyz(3.5967, 2.4264, 12.8466)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212266 #666521
analogous
#214566 #212266 #432166
triadic
#212266 #662122 #226621
tetradic
#212266 #662145 #666521 #216643
square
#212266 #662145 #666521 #216643
split-complementary
#212266 #664321 #456621
monochromatic
#070817 #121338 #212266 #303194 #4042C1

Accessibility & contrast

On white

14.14
#212266 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#212266 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212266
14.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212266#FFFFFF#000000##FFFFFF
##2122661.0014.141.4914.14
#FFFFFF14.141.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E68
Deuteranopia (green-blind)
#002865
Tritanopia (blue-blind)
#003340
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #212266;
/* rgb */ color: rgb(33, 34, 102);
/* oklch */ color: oklch(29.9% 0.116 276.1);
Tailwind
colors: {
  custom: {
    50: '#665d92',
    500: '#212266',
    950: '#000000',
  },
}
SCSS
$custom: #212266;
$custom-light: #665d92;
$custom-dark: #000000;
JSON
{
  "hex": "#212266",
  "rgb": {
    "r": 33,
    "g": 34,
    "b": 102
  },
  "hsl": {
    "h": 239.13,
    "s": 51.111,
    "l": 26.471
  },
  "oklch": {
    "l": 0.29894,
    "c": 0.11647,
    "h": 276.1
  },
  "luminance": 0.02427
}

Semantic roles & 50–950 ramp

primary
#212266
secondary
#9A9949
accent
#D94DDB
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#06040D
muted
#7A797E

Preview Lab

Preview with #212266

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

Preview Lab → · Contrast checker → · Palette generator →

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