#222452#222452

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

Color values

HEX#222452
RGBrgb(34, 36, 82)
HSLhsl(238, 41%, 23%)
HSVhsv(238, 59%, 32%)
CMYKcmyk(58.5%, 56.1%, 0%, 67.8%)
CIE-LABlab(16.56, 14.33, -28.53)
CIE-LCHlch(16.56, 31.93, 296.67°)
OKLaboklab(28.63% 0.0114 -0.0815)
OKLCHoklch(28.63% 0.082 278)
XYZxyz(2.8131, 2.2109, 8.2595)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222452 #525022
analogous
#223C52 #222452 #382252
triadic
#222452 #522224 #245222
tetradic
#222452 #52223C #525022 #225238
square
#222452 #52223C #525022 #225238
split-complementary
#222452 #523822 #3C5222
monochromatic
#090916 #101127 #222452 #34377D #464AA9

Accessibility & contrast

On white

14.56
#222452 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#222452 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222452
14.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222452#FFFFFF#000000##FFFFFF
##2224521.0014.561.4414.56
#FFFFFF14.561.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C2B54
Deuteranopia (green-blind)
#062751
Tritanopia (blue-blind)
#0C2E37
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #222452;
/* rgb */ color: rgb(34, 36, 82);
/* oklch */ color: oklch(28.6% 0.082 278.0);
Tailwind
colors: {
  custom: {
    50: '#625e83',
    500: '#222452',
    950: '#000000',
  },
}
SCSS
$custom: #222452;
$custom-light: #625e83;
$custom-dark: #000000;
JSON
{
  "hex": "#222452",
  "rgb": {
    "r": 34,
    "g": 36,
    "b": 82
  },
  "hsl": {
    "h": 237.5,
    "s": 41.379,
    "l": 22.745
  },
  "oklch": {
    "l": 0.28628,
    "c": 0.08227,
    "h": 278
  },
  "luminance": 0.02211
}

Semantic roles & 50–950 ramp

primary
#222452
secondary
#86834A
accent
#CC57D1
background
#F5F5F8
surface
#EAE9EF
border
#C6C5CA
text
#05040A
muted
#79797C

Preview Lab

Preview with #222452

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

Preview Lab → · Contrast checker → · Palette generator →

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