#212258#212258

#212258 is a dark, moderate blue. Relative luminance 0.022; OKLCH L 28.6% C 0.095 H 277.7°. Best body text is #FFFFFF at 14.64:1 contrast (WCAG AA passes).

Color values

HEX#212258
RGBrgb(33, 34, 88)
HSLhsl(239, 45%, 24%)
HSVhsv(239, 63%, 35%)
CMYKcmyk(62.5%, 61.4%, 0%, 65.5%)
CIE-LABlab(16.36, 17.81, -32.89)
CIE-LCHlch(16.36, 37.40, 298.44°)
OKLaboklab(28.61% 0.0128 -0.0943)
OKLCHoklch(28.61% 0.095 277.7)
XYZxyz(2.9601, 2.1718, 9.4938)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212258 #585721
analogous
#213D58 #212258 #3B2158
triadic
#212258 #582122 #225821
tetradic
#212258 #58213D #585721 #21583B
square
#212258 #58213D #585721 #21583B
split-complementary
#212258 #583B21 #3D5821
monochromatic
#080916 #10112B #212258 #323385 #4244B1

Accessibility & contrast

On white

14.64
#212258 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#212258 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212258
14.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212258#FFFFFF#000000##FFFFFF
##2122581.0014.641.4314.64
#FFFFFF14.641.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5A
Deuteranopia (green-blind)
#002657
Tritanopia (blue-blind)
#012F39
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #212258;
/* rgb */ color: rgb(33, 34, 88);
/* oklch */ color: oklch(28.6% 0.095 277.7);
Tailwind
colors: {
  custom: {
    50: '#625d88',
    500: '#212258',
    950: '#000000',
  },
}
SCSS
$custom: #212258;
$custom-light: #625d88;
$custom-dark: #000000;
JSON
{
  "hex": "#212258",
  "rgb": {
    "r": 33,
    "g": 34,
    "b": 88
  },
  "hsl": {
    "h": 238.909,
    "s": 45.455,
    "l": 23.725
  },
  "oklch": {
    "l": 0.28613,
    "c": 0.0952,
    "h": 277.7
  },
  "luminance": 0.02172
}

Semantic roles & 50–950 ramp

primary
#212258
secondary
#8C8B49
accent
#D353D5
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05040B
muted
#7A797C

Preview Lab

Preview with #212258

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

Preview Lab → · Contrast checker → · Palette generator →

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