#212458#212458

#212458 is a dark, moderate blue. Relative luminance 0.023; OKLCH L 29.0% C 0.092 H 276.5°. Best body text is #FFFFFF at 14.40:1 contrast (WCAG AA passes).

Color values

HEX#212458
RGBrgb(33, 36, 88)
HSLhsl(237, 45%, 24%)
HSVhsv(237, 63%, 35%)
CMYKcmyk(62.5%, 59.1%, 0%, 65.5%)
CIE-LABlab(16.94, 16.37, -31.96)
CIE-LCHlch(16.94, 35.91, 297.13°)
OKLaboklab(29.04% 0.0105 -0.0916)
OKLCHoklch(29.04% 0.092 276.5)
XYZxyz(3.0190, 2.2894, 9.5134)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212458 #585521
analogous
#213F58 #212458 #392158
triadic
#212458 #582124 #245821
tetradic
#212458 #58213F #585521 #215839
square
#212458 #58213F #585521 #215839
split-complementary
#212458 #583921 #3F5821
monochromatic
#080916 #10122B #212458 #323685 #4248B1

Accessibility & contrast

On white

14.40
#212458 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#212458 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212458
14.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212458#FFFFFF#000000##FFFFFF
##2124581.0014.401.4614.40
#FFFFFF14.401.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#032C5A
Deuteranopia (green-blind)
#002857
Tritanopia (blue-blind)
#01303A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #212458;
/* rgb */ color: rgb(33, 36, 88);
/* oklch */ color: oklch(29.0% 0.092 276.5);
Tailwind
colors: {
  custom: {
    50: '#625e88',
    500: '#212458',
    950: '#000000',
  },
}
SCSS
$custom: #212458;
$custom-light: #625e88;
$custom-dark: #000000;
JSON
{
  "hex": "#212458",
  "rgb": {
    "r": 33,
    "g": 36,
    "b": 88
  },
  "hsl": {
    "h": 236.727,
    "s": 45.455,
    "l": 23.725
  },
  "oklch": {
    "l": 0.29041,
    "c": 0.09218,
    "h": 276.5
  },
  "luminance": 0.0229
}

Semantic roles & 50–950 ramp

primary
#212458
secondary
#8C8949
accent
#CE53D5
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#05040B
muted
#7A797C

Preview Lab

Preview with #212458

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

Preview Lab → · Contrast checker → · Palette generator →

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