#212362#212362

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

Color values

HEX#212362
RGBrgb(33, 35, 98)
HSLhsl(238, 50%, 26%)
HSVhsv(238, 66%, 38%)
CMYKcmyk(66.3%, 64.3%, 0%, 61.6%)
CIE-LABlab(17.49, 20.90, -37.71)
CIE-LCHlch(17.49, 43.11, 299.00°)
OKLaboklab(29.72% 0.0116 -0.1085)
OKLCHoklch(29.72% 0.109 276.1)
XYZxyz(3.4321, 2.4070, 11.8366)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212362 #626021
analogous
#214362 #212362 #3F2162
triadic
#212362 #622123 #236221
tetradic
#212362 #622143 #626021 #21623F
square
#212362 #622143 #626021 #21623F
split-complementary
#212362 #623F21 #436221
monochromatic
#080817 #121334 #212362 #303390 #4044BE

Accessibility & contrast

On white

14.18
#212362 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#212362 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212362
14.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212362#FFFFFF#000000##FFFFFF
##2123621.0014.181.4814.18
#FFFFFF14.181.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.181.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #212362;
/* rgb */ color: rgb(33, 35, 98);
/* oklch */ color: oklch(29.7% 0.109 276.1);
Tailwind
colors: {
  custom: {
    50: '#655e8f',
    500: '#212362',
    950: '#000000',
  },
}
SCSS
$custom: #212362;
$custom-light: #655e8f;
$custom-dark: #000000;
JSON
{
  "hex": "#212362",
  "rgb": {
    "r": 33,
    "g": 35,
    "b": 98
  },
  "hsl": {
    "h": 238.154,
    "s": 49.618,
    "l": 25.686
  },
  "oklch": {
    "l": 0.29716,
    "c": 0.10912,
    "h": 276.1
  },
  "luminance": 0.02407
}

Semantic roles & 50–950 ramp

primary
#212362
secondary
#969449
accent
#D54FD9
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040C
muted
#7A797D

Preview Lab

Preview with #212362

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

Preview Lab → · Contrast checker → · Palette generator →

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