#212E58#212E58

#212E58 is a dark, moderate blue. Relative luminance 0.030; OKLCH L 31.3% C 0.077 H 268.7°. Best body text is #FFFFFF at 13.15:1 contrast (WCAG AA passes).

Color values

HEX#212E58
RGBrgb(33, 46, 88)
HSLhsl(226, 45%, 24%)
HSVhsv(226, 63%, 35%)
CMYKcmyk(62.5%, 47.7%, 0%, 65.5%)
CIE-LABlab(19.97, 9.14, -27.09)
CIE-LCHlch(19.97, 28.59, 288.64°)
OKLaboklab(31.34% -0.0017 -0.0771)
OKLCHoklch(31.34% 0.077 268.7)
XYZxyz(3.3651, 2.9816, 9.6288)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212E58 #584B21
analogous
#214958 #212E58 #2F2158
triadic
#212E58 #58212E #2E5821
tetradic
#212E58 #582149 #584B21 #21582F
square
#212E58 #582149 #584B21 #21582F
split-complementary
#212E58 #582F21 #495821
monochromatic
#080C16 #10172B #212E58 #324585 #425DB1

Accessibility & contrast

On white

13.15
#212E58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#212E58 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212E58
13.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212E58#FFFFFF#000000##FFFFFF
##212E581.0013.151.6013.15
#FFFFFF13.151.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B335A
Deuteranopia (green-blind)
#142E57
Tritanopia (blue-blind)
#00373E
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #212e58;
/* rgb */ color: rgb(33, 46, 88);
/* oklch */ color: oklch(31.3% 0.077 268.7);
Tailwind
colors: {
  custom: {
    50: '#626687',
    500: '#212e58',
    950: '#000000',
  },
}
SCSS
$custom: #212e58;
$custom-light: #626687;
$custom-dark: #000000;
JSON
{
  "hex": "#212e58",
  "rgb": {
    "r": 33,
    "g": 46,
    "b": 88
  },
  "hsl": {
    "h": 225.818,
    "s": 45.455,
    "l": 23.725
  },
  "oklch": {
    "l": 0.31336,
    "c": 0.07716,
    "h": 268.7
  },
  "luminance": 0.02982
}

Semantic roles & 50–950 ramp

primary
#212E58
secondary
#8C7C49
accent
#B653D5
background
#F6F6F8
surface
#EBEBEF
border
#C6C6CA
text
#05050B
muted
#7A7A7C

Preview Lab

Preview with #212E58

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

Preview Lab → · Contrast checker → · Palette generator →

#212E58 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva