#222440#222440

#222440 is a dark, muted blue. Relative luminance 0.020; OKLCH L 27.3% C 0.052 H 279.3°. Best body text is #FFFFFF at 15.06:1 contrast (WCAG AA passes).

Color values

HEX#222440
RGBrgb(34, 36, 64)
HSLhsl(236, 31%, 19%)
HSVhsv(236, 47%, 25%)
CMYKcmyk(46.9%, 43.8%, 0%, 74.9%)
CIE-LABlab(15.34, 7.75, -18.12)
CIE-LCHlch(15.34, 19.71, 293.15°)
OKLaboklab(27.31% 0.0083 -0.051)
OKLCHoklch(27.31% 0.052 279.3)
XYZxyz(2.2157, 1.9719, 5.1134)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222440 #403E22
analogous
#223340 #222440 #2F2240
triadic
#222440 #402224 #244022
tetradic
#222440 #402233 #403E22 #22402F
square
#222440 #402233 #403E22 #22402F
split-complementary
#222440 #402F22 #334022
monochromatic
#0B0B14 #0D0E18 #222440 #373A68 #4C5190

Accessibility & contrast

On white

15.06
#222440 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#222440 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222440
15.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222440#FFFFFF#000000##FFFFFF
##2224401.0015.061.3915.06
#FFFFFF15.061.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A2841
Deuteranopia (green-blind)
#18253F
Tritanopia (blue-blind)
#192A2E
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #222440;
/* rgb */ color: rgb(34, 36, 64);
/* oklch */ color: oklch(27.3% 0.052 279.3);
Tailwind
colors: {
  custom: {
    50: '#5f5e75',
    500: '#222440',
    950: '#000000',
  },
}
SCSS
$custom: #222440;
$custom-light: #5f5e75;
$custom-dark: #000000;
JSON
{
  "hex": "#222440",
  "rgb": {
    "r": 34,
    "g": 36,
    "b": 64
  },
  "hsl": {
    "h": 236,
    "s": 30.612,
    "l": 19.216
  },
  "oklch": {
    "l": 0.2731,
    "c": 0.05166,
    "h": 279.3
  },
  "luminance": 0.01972
}

Semantic roles & 50–950 ramp

primary
#222440
secondary
#73714B
accent
#C061C7
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#040408
muted
#79797B

Preview Lab

Preview with #222440

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

Preview Lab → · Contrast checker → · Palette generator →

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