#212958#212958

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

Color values

HEX#212958
RGBrgb(33, 41, 88)
HSLhsl(231, 45%, 24%)
HSVhsv(231, 63%, 35%)
CMYKcmyk(62.5%, 53.4%, 0%, 65.5%)
CIE-LABlab(18.42, 12.75, -29.56)
CIE-LCHlch(18.42, 32.19, 293.33°)
OKLaboklab(30.16% 0.0045 -0.0845)
OKLCHoklch(30.16% 0.085 273)
XYZxyz(3.1810, 2.6136, 9.5675)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212958 #585021
analogous
#214458 #212958 #342158
triadic
#212958 #582129 #295821
tetradic
#212958 #582144 #585021 #215834
square
#212958 #582144 #585021 #215834
split-complementary
#212958 #583421 #445821
monochromatic
#080A16 #10142B #212958 #323E85 #4252B1

Accessibility & contrast

On white

13.79
#212958 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#212958 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212958
13.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212958#FFFFFF#000000##FFFFFF
##2129581.0013.791.5213.79
#FFFFFF13.791.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#112F5A
Deuteranopia (green-blind)
#082B57
Tritanopia (blue-blind)
#00343C
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #212958;
/* rgb */ color: rgb(33, 41, 88);
/* oklch */ color: oklch(30.2% 0.085 273.0);
Tailwind
colors: {
  custom: {
    50: '#626287',
    500: '#212958',
    950: '#000000',
  },
}
SCSS
$custom: #212958;
$custom-light: #626287;
$custom-dark: #000000;
JSON
{
  "hex": "#212958",
  "rgb": {
    "r": 33,
    "g": 41,
    "b": 88
  },
  "hsl": {
    "h": 231.273,
    "s": 45.455,
    "l": 23.725
  },
  "oklch": {
    "l": 0.30159,
    "c": 0.0846,
    "h": 273
  },
  "luminance": 0.02614
}

Semantic roles & 50–950 ramp

primary
#212958
secondary
#8C8249
accent
#C253D5
background
#F6F5F8
surface
#EBEAEF
border
#C6C6CA
text
#05050B
muted
#7A797C

Preview Lab

Preview with #212958

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

Preview Lab → · Contrast checker → · Palette generator →

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