#222842#222842

#222842 is a dark, muted blue. Relative luminance 0.023; OKLCH L 28.4% C 0.049 H 273.1°. Best body text is #FFFFFF at 14.48:1 contrast (WCAG AA passes).

Color values

HEX#222842
RGBrgb(34, 40, 66)
HSLhsl(229, 32%, 20%)
HSVhsv(229, 48%, 26%)
CMYKcmyk(48.5%, 39.4%, 0%, 74.1%)
CIE-LABlab(16.75, 5.54, -17.29)
CIE-LCHlch(16.75, 18.15, 287.78°)
OKLaboklab(28.44% 0.0026 -0.0485)
OKLCHoklch(28.44% 0.049 273.1)
XYZxyz(2.4015, 2.2509, 5.4611)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222842 #423C22
analogous
#223842 #222842 #2C2242
triadic
#222842 #422228 #284222
tetradic
#222842 #422238 #423C22 #22422C
square
#222842 #422238 #423C22 #22422C
split-complementary
#222842 #422C22 #384222
monochromatic
#0A0C14 #0D101A #222842 #37406A #4C5993

Accessibility & contrast

On white

14.48
#222842 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#222842 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222842
14.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222842#FFFFFF#000000##FFFFFF
##2228421.0014.481.4514.48
#FFFFFF14.481.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F2B43
Deuteranopia (green-blind)
#1C2841
Tritanopia (blue-blind)
#172D32
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #222842;
/* rgb */ color: rgb(34, 40, 66);
/* oklch */ color: oklch(28.4% 0.049 273.1);
Tailwind
colors: {
  custom: {
    50: '#5f6176',
    500: '#222842',
    950: '#000000',
  },
}
SCSS
$custom: #222842;
$custom-light: #5f6176;
$custom-dark: #000000;
JSON
{
  "hex": "#222842",
  "rgb": {
    "r": 34,
    "g": 40,
    "b": 66
  },
  "hsl": {
    "h": 228.75,
    "s": 32,
    "l": 19.608
  },
  "oklch": {
    "l": 0.28436,
    "c": 0.04861,
    "h": 273.1
  },
  "luminance": 0.02251
}

Semantic roles & 50–950 ramp

primary
#222842
secondary
#756D4A
accent
#B560C8
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#040508
muted
#79797B

Preview Lab

Preview with #222842

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

Preview Lab → · Contrast checker → · Palette generator →

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