#212262#212262

#212262 is a dark, moderate blue. Relative luminance 0.023; OKLCH L 29.5% C 0.111 H 276.6°. Best body text is #FFFFFF at 14.29:1 contrast (WCAG AA passes).

Color values

HEX#212262
RGBrgb(33, 34, 98)
HSLhsl(239, 50%, 26%)
HSVhsv(239, 66%, 38%)
CMYKcmyk(66.3%, 65.3%, 0%, 61.6%)
CIE-LABlab(17.22, 21.60, -38.15)
CIE-LCHlch(17.22, 43.84, 299.52°)
OKLaboklab(29.52% 0.0126 -0.1098)
OKLCHoklch(29.52% 0.111 276.6)
XYZxyz(3.4031, 2.3490, 11.8270)
Luminance0.0235 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212262 #626121
analogous
#214262 #212262 #402162
triadic
#212262 #622122 #226221
tetradic
#212262 #622142 #626121 #216240
square
#212262 #622142 #626121 #216240
split-complementary
#212262 #624021 #426221
monochromatic
#080817 #121234 #212262 #303290 #4042BE

Accessibility & contrast

On white

14.29
#212262 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#212262 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212262
14.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212262#FFFFFF#000000##FFFFFF
##2122621.0014.291.4714.29
#FFFFFF14.291.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D64
Deuteranopia (green-blind)
#002861
Tritanopia (blue-blind)
#00323E
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #212262;
/* rgb */ color: rgb(33, 34, 98);
/* oklch */ color: oklch(29.5% 0.111 276.6);
Tailwind
colors: {
  custom: {
    50: '#655d8f',
    500: '#212262',
    950: '#000000',
  },
}
SCSS
$custom: #212262;
$custom-light: #655d8f;
$custom-dark: #000000;
JSON
{
  "hex": "#212262",
  "rgb": {
    "r": 33,
    "g": 34,
    "b": 98
  },
  "hsl": {
    "h": 239.077,
    "s": 49.618,
    "l": 25.686
  },
  "oklch": {
    "l": 0.29517,
    "c": 0.11052,
    "h": 276.6
  },
  "luminance": 0.02349
}

Semantic roles & 50–950 ramp

primary
#212262
secondary
#969549
accent
#D74FD9
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040C
muted
#7A797D

Preview Lab

Preview with #212262

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

Preview Lab → · Contrast checker → · Palette generator →

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