#212666#212666

#212666 is a dark, moderate blue. Relative luminance 0.027; OKLCH L 30.7% C 0.111 H 274.4°. Best body text is #FFFFFF at 13.69:1 contrast (WCAG AA passes).

Color values

HEX#212666
RGBrgb(33, 38, 102)
HSLhsl(236, 51%, 26%)
HSVhsv(236, 68%, 40%)
CMYKcmyk(67.6%, 62.7%, 0%, 60%)
CIE-LABlab(18.66, 20.31, -38.43)
CIE-LCHlch(18.66, 43.47, 297.86°)
OKLaboklab(30.69% 0.0086 -0.1106)
OKLCHoklch(30.69% 0.111 274.4)
XYZxyz(3.7178, 2.6686, 12.8870)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212666 #666121
analogous
#214966 #212666 #3F2166
triadic
#212666 #662126 #266621
tetradic
#212666 #662149 #666121 #21663F
square
#212666 #662149 #666121 #21663F
split-complementary
#212666 #663F21 #496621
monochromatic
#070917 #121538 #212666 #303794 #404AC1

Accessibility & contrast

On white

13.69
#212666 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#212666 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212666
13.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212666#FFFFFF#000000##FFFFFF
##2126661.0013.691.5313.69
#FFFFFF13.691.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003168
Deuteranopia (green-blind)
#002A65
Tritanopia (blue-blind)
#003642
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #212666;
/* rgb */ color: rgb(33, 38, 102);
/* oklch */ color: oklch(30.7% 0.111 274.4);
Tailwind
colors: {
  custom: {
    50: '#656092',
    500: '#212666',
    950: '#000000',
  },
}
SCSS
$custom: #212666;
$custom-light: #656092;
$custom-dark: #000000;
JSON
{
  "hex": "#212666",
  "rgb": {
    "r": 33,
    "g": 38,
    "b": 102
  },
  "hsl": {
    "h": 235.652,
    "s": 51.111,
    "l": 26.471
  },
  "oklch": {
    "l": 0.30691,
    "c": 0.11093,
    "h": 274.4
  },
  "luminance": 0.02669
}

Semantic roles & 50–950 ramp

primary
#212666
secondary
#9A9449
accent
#D04DDB
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#06040D
muted
#7A797E

Preview Lab

Preview with #212666

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

Preview Lab → · Contrast checker → · Palette generator →

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