#222840#222840

#222840 is a dark, muted blue. Relative luminance 0.022; OKLCH L 28.3% C 0.045 H 272.5°. Best body text is #FFFFFF at 14.53:1 contrast (WCAG AA passes).

Color values

HEX#222840
RGBrgb(34, 40, 64)
HSLhsl(228, 31%, 19%)
HSVhsv(228, 47%, 25%)
CMYKcmyk(46.9%, 37.5%, 0%, 74.9%)
CIE-LABlab(16.64, 4.84, -16.08)
CIE-LCHlch(16.64, 16.80, 286.76°)
OKLaboklab(28.31% 0.002 -0.045)
OKLCHoklch(28.31% 0.045 272.5)
XYZxyz(2.3436, 2.2277, 5.1560)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222840 #403A22
analogous
#223740 #222840 #2B2240
triadic
#222840 #402228 #284022
tetradic
#222840 #402237 #403A22 #22402B
square
#222840 #402237 #403A22 #22402B
split-complementary
#222840 #402B22 #374022
monochromatic
#0B0C14 #0D0F18 #222840 #374168 #4C5A90

Accessibility & contrast

On white

14.53
#222840 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #222840
14.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222840#FFFFFF#000000##FFFFFF
##2228401.0014.531.4514.53
#FFFFFF14.531.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#202A41
Deuteranopia (green-blind)
#1D283F
Tritanopia (blue-blind)
#182D31
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #222840;
/* rgb */ color: rgb(34, 40, 64);
/* oklch */ color: oklch(28.3% 0.045 272.5);
Tailwind
colors: {
  custom: {
    50: '#5e6175',
    500: '#222840',
    950: '#000000',
  },
}
SCSS
$custom: #222840;
$custom-light: #5e6175;
$custom-dark: #000000;
JSON
{
  "hex": "#222840",
  "rgb": {
    "r": 34,
    "g": 40,
    "b": 64
  },
  "hsl": {
    "h": 228,
    "s": 30.612,
    "l": 19.216
  },
  "oklch": {
    "l": 0.28311,
    "c": 0.04508,
    "h": 272.5
  },
  "luminance": 0.02228
}

Semantic roles & 50–950 ramp

primary
#222840
secondary
#736B4B
accent
#B261C7
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#040508
muted
#79797B

Preview Lab

Preview with #222840

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

Preview Lab → · Contrast checker → · Palette generator →

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