#212261#212261

#212261 is a dark, moderate blue. Relative luminance 0.023; OKLCH L 29.4% C 0.109 H 276.7°. Best body text is #FFFFFF at 14.32:1 contrast (WCAG AA passes).

Color values

HEX#212261
RGBrgb(33, 34, 97)
HSLhsl(239, 49%, 25%)
HSVhsv(239, 66%, 38%)
CMYKcmyk(66%, 64.9%, 0%, 62%)
CIE-LABlab(17.13, 21.22, -37.63)
CIE-LCHlch(17.13, 43.20, 299.42°)
OKLaboklab(29.42% 0.0127 -0.1083)
OKLCHoklch(29.42% 0.109 276.7)
XYZxyz(3.3562, 2.3302, 11.5799)
Luminance0.0233 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212261 #616021
analogous
#214261 #212261 #402161
triadic
#212261 #612122 #226121
tetradic
#212261 #612142 #616021 #216140
square
#212261 #612142 #616021 #216140
split-complementary
#212261 #614021 #426121
monochromatic
#080817 #111233 #212261 #31328F #4042BC

Accessibility & contrast

On white

14.32
#212261 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #212261
14.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212261#FFFFFF#000000##FFFFFF
##2122611.0014.321.4714.32
#FFFFFF14.321.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.321.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #212261;
/* rgb */ color: rgb(33, 34, 97);
/* oklch */ color: oklch(29.4% 0.109 276.7);
Tailwind
colors: {
  custom: {
    50: '#645d8e',
    500: '#212261',
    950: '#000000',
  },
}
SCSS
$custom: #212261;
$custom-light: #645d8e;
$custom-dark: #000000;
JSON
{
  "hex": "#212261",
  "rgb": {
    "r": 33,
    "g": 34,
    "b": 97
  },
  "hsl": {
    "h": 239.063,
    "s": 49.231,
    "l": 25.49
  },
  "oklch": {
    "l": 0.29423,
    "c": 0.10903,
    "h": 276.7
  },
  "luminance": 0.0233
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #212261

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

Preview Lab → · Contrast checker → · Palette generator →

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