#212062#212062

#212062 is a dark, moderate blue. Relative luminance 0.022; OKLCH L 29.1% C 0.113 H 277.4°. Best body text is #FFFFFF at 14.51:1 contrast (WCAG AA passes).

Color values

HEX#212062
RGBrgb(33, 32, 98)
HSLhsl(241, 51%, 25%)
HSVhsv(241, 67%, 38%)
CMYKcmyk(66.3%, 67.3%, 0%, 61.6%)
CIE-LABlab(16.69, 22.99, -39.02)
CIE-LCHlch(16.69, 45.29, 300.51°)
OKLaboklab(29.13% 0.0146 -0.1124)
OKLCHoklch(29.13% 0.113 277.4)
XYZxyz(3.3476, 2.2379, 11.8085)
Luminance0.0224 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212062 #616220
analogous
#204062 #212062 #422062
triadic
#212062 #622120 #206221
tetradic
#212062 #622040 #616220 #206242
square
#212062 #622040 #616220 #206242
split-complementary
#212062 #624220 #406220
monochromatic
#080817 #111134 #212062 #312F90 #403EBE

Accessibility & contrast

On white

14.51
#212062 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#212062 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212062
14.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212062#FFFFFF#000000##FFFFFF
##2120621.0014.511.4514.51
#FFFFFF14.511.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C64
Deuteranopia (green-blind)
#002661
Tritanopia (blue-blind)
#00313D
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #212062;
/* rgb */ color: rgb(33, 32, 98);
/* oklch */ color: oklch(29.1% 0.113 277.4);
Tailwind
colors: {
  custom: {
    50: '#655b8f',
    500: '#212062',
    950: '#000000',
  },
}
SCSS
$custom: #212062;
$custom-light: #655b8f;
$custom-dark: #000000;
JSON
{
  "hex": "#212062",
  "rgb": {
    "r": 33,
    "g": 32,
    "b": 98
  },
  "hsl": {
    "h": 240.909,
    "s": 50.769,
    "l": 25.49
  },
  "oklch": {
    "l": 0.29126,
    "c": 0.1133,
    "h": 277.4
  },
  "luminance": 0.02238
}

Semantic roles & 50–950 ramp

primary
#212062
secondary
#959647
accent
#DA4ED8
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040C
muted
#7A797D

Preview Lab

Preview with #212062

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

Preview Lab → · Contrast checker → · Palette generator →

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