#212959#212959

#212959 is a dark, moderate blue. Relative luminance 0.026; OKLCH L 30.2% C 0.086 H 273.1°. Best body text is #FFFFFF at 13.76:1 contrast (WCAG AA passes).

Color values

HEX#212959
RGBrgb(33, 41, 89)
HSLhsl(231, 46%, 24%)
HSVhsv(231, 63%, 35%)
CMYKcmyk(62.9%, 53.9%, 0%, 65.1%)
CIE-LABlab(18.50, 13.14, -30.11)
CIE-LCHlch(18.50, 32.85, 293.57°)
OKLaboklab(30.24% 0.0046 -0.0861)
OKLCHoklch(30.24% 0.086 273.1)
XYZxyz(3.2227, 2.6302, 9.7871)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212959 #595121
analogous
#214559 #212959 #352159
triadic
#212959 #592129 #295921
tetradic
#212959 #592145 #595121 #215935
square
#212959 #592145 #595121 #215935
split-complementary
#212959 #593521 #455921
monochromatic
#080A16 #10142C #212959 #323E86 #4252B2

Accessibility & contrast

On white

13.76
#212959 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #212959
13.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212959#FFFFFF#000000##FFFFFF
##2129591.0013.761.5313.76
#FFFFFF13.761.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10305B
Deuteranopia (green-blind)
#062B58
Tritanopia (blue-blind)
#00343C
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #212959;
/* rgb */ color: rgb(33, 41, 89);
/* oklch */ color: oklch(30.2% 0.086 273.1);
Tailwind
colors: {
  custom: {
    50: '#626288',
    500: '#212959',
    950: '#000000',
  },
}
SCSS
$custom: #212959;
$custom-light: #626288;
$custom-dark: #000000;
JSON
{
  "hex": "#212959",
  "rgb": {
    "r": 33,
    "g": 41,
    "b": 89
  },
  "hsl": {
    "h": 231.429,
    "s": 45.902,
    "l": 23.922
  },
  "oklch": {
    "l": 0.30238,
    "c": 0.08621,
    "h": 273.1
  },
  "luminance": 0.0263
}

Semantic roles & 50–950 ramp

primary
#212959
secondary
#8D8349
accent
#C352D6
background
#F6F5F8
surface
#EBEAF0
border
#C6C6CB
text
#05050B
muted
#7A797C

Preview Lab

Preview with #212959

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

Preview Lab → · Contrast checker → · Palette generator →

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