#222834#222834

#222834 is a dark, muted blue. Relative luminance 0.021; OKLCH L 27.6% C 0.024 H 264.1°. Best body text is #FFFFFF at 14.78:1 contrast (WCAG AA passes).

Color values

HEX#222834
RGBrgb(34, 40, 52)
HSLhsl(220, 21%, 17%)
HSVhsv(220, 35%, 20%)
CMYKcmyk(34.6%, 23.1%, 0%, 79.6%)
CIE-LABlab(16.03, 0.84, -8.65)
CIE-LCHlch(16.03, 8.69, 275.57°)
OKLaboklab(27.64% -0.0025 -0.0238)
OKLCHoklch(27.64% 0.024 264.1)
XYZxyz(2.0381, 2.1055, 3.5472)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222834 #342E22
analogous
#223134 #222834 #252234
triadic
#222834 #342228 #283422
tetradic
#222834 #342231 #342E22 #223425
square
#222834 #342231 #342E22 #223425
split-complementary
#222834 #342522 #313422
monochromatic
#0C0E13 #0C0E13 #222834 #3A4459 #52617E

Accessibility & contrast

On white

14.78
#222834 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#222834 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222834
14.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222834#FFFFFF#000000##FFFFFF
##2228341.0014.781.4214.78
#FFFFFF14.781.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#242935
Deuteranopia (green-blind)
#222734
Tritanopia (blue-blind)
#1D2A2C
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #222834;
/* rgb */ color: rgb(34, 40, 52);
/* oklch */ color: oklch(27.6% 0.024 264.1);
Tailwind
colors: {
  custom: {
    50: '#5d616b',
    500: '#222834',
    950: '#000000',
  },
}
SCSS
$custom: #222834;
$custom-light: #5d616b;
$custom-dark: #000000;
JSON
{
  "hex": "#222834",
  "rgb": {
    "r": 34,
    "g": 40,
    "b": 52
  },
  "hsl": {
    "h": 220,
    "s": 20.93,
    "l": 16.863
  },
  "oklch": {
    "l": 0.27638,
    "c": 0.02391,
    "h": 264.1
  },
  "luminance": 0.02106
}

Semantic roles & 50–950 ramp

primary
#222834
secondary
#665D4C
accent
#A26ABD
background
#F5F5F6
surface
#E9E9EB
border
#C5C5C6
text
#040506
muted
#79797A

Preview Lab

Preview with #222834

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

Preview Lab → · Contrast checker → · Palette generator →

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