#222A40#222A40

#222A40 is a dark, muted blue. Relative luminance 0.024; OKLCH L 28.8% C 0.042 H 268.4°. Best body text is #FFFFFF at 14.25:1 contrast (WCAG AA passes).

Color values

HEX#222A40
RGBrgb(34, 42, 64)
HSLhsl(224, 31%, 19%)
HSVhsv(224, 47%, 25%)
CMYKcmyk(46.9%, 34.4%, 0%, 74.9%)
CIE-LABlab(17.30, 3.41, -15.05)
CIE-LCHlch(17.30, 15.43, 282.75°)
OKLaboklab(28.83% -0.0012 -0.042)
OKLCHoklch(28.83% 0.042 268.4)
XYZxyz(2.4128, 2.3661, 5.1791)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222A40 #403822
analogous
#223940 #222A40 #292240
triadic
#222A40 #40222A #2A4022
tetradic
#222A40 #402239 #403822 #224029
square
#222A40 #402239 #403822 #224029
split-complementary
#222A40 #402922 #394022
monochromatic
#0B0D14 #0D1018 #222A40 #374468 #4C5E90

Accessibility & contrast

On white

14.25
#222A40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#222A40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222A40
14.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222A40#FFFFFF#000000##FFFFFF
##222A401.0014.251.4714.25
#FFFFFF14.251.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#222C41
Deuteranopia (green-blind)
#20293F
Tritanopia (blue-blind)
#182E32
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #222a40;
/* rgb */ color: rgb(34, 42, 64);
/* oklch */ color: oklch(28.8% 0.042 268.4);
Tailwind
colors: {
  custom: {
    50: '#5e6375',
    500: '#222a40',
    950: '#000000',
  },
}
SCSS
$custom: #222a40;
$custom-light: #5e6375;
$custom-dark: #000000;
JSON
{
  "hex": "#222a40",
  "rgb": {
    "r": 34,
    "g": 42,
    "b": 64
  },
  "hsl": {
    "h": 224,
    "s": 30.612,
    "l": 19.216
  },
  "oklch": {
    "l": 0.28825,
    "c": 0.04207,
    "h": 268.4
  },
  "luminance": 0.02366
}

Semantic roles & 50–950 ramp

primary
#222A40
secondary
#73684B
accent
#AC61C7
background
#F5F5F7
surface
#E9EAED
border
#C5C6C8
text
#040508
muted
#79797B

Preview Lab

Preview with #222A40

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

Preview Lab → · Contrast checker → · Palette generator →

#222A40 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva