#242228#242228

#242228 is a dark, near-neutral violet. Relative luminance 0.017; OKLCH L 25.7% C 0.011 H 300.8°. Best body text is #FFFFFF at 15.74:1 contrast (WCAG AA passes).

Color values

HEX#242228
RGBrgb(36, 34, 40)
HSLhsl(260, 8%, 15%)
HSVhsv(260, 15%, 16%)
CMYKcmyk(10%, 15%, 0%, 84.3%)
CIE-LABlab(13.66, 2.45, -3.67)
CIE-LCHlch(13.66, 4.41, 303.72°)
OKLaboklab(25.66% 0.0059 -0.0099)
OKLCHoklch(25.66% 0.011 300.8)
XYZxyz(1.6825, 1.6723, 2.2412)
Luminance0.0167 (WCAG relative)
Temperatureneutral
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242228 #262822
analogous
#222328 #242228 #272228
triadic
#242228 #282422 #222824
tetradic
#242228 #282223 #262822 #222827
square
#242228 #282223 #262822 #222827
split-complementary
#242228 #282722 #232822
monochromatic
#0F0E11 #0F0E11 #242228 #423E49 #605A6A

Accessibility & contrast

On white

15.74
#242228 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#242228 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242228
15.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242228#FFFFFF#000000##FFFFFF
##2422281.0015.741.3315.74
#FFFFFF15.741.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#212328
Deuteranopia (green-blind)
#212328
Tritanopia (blue-blind)
#232324
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #242228;
/* rgb */ color: rgb(36, 34, 40);
/* oklch */ color: oklch(25.7% 0.011 300.8);
Tailwind
colors: {
  custom: {
    50: '#5e5c61',
    500: '#242228',
    950: '#000000',
  },
}
SCSS
$custom: #242228;
$custom-light: #5e5c61;
$custom-dark: #000000;
JSON
{
  "hex": "#242228",
  "rgb": {
    "r": 36,
    "g": 34,
    "b": 40
  },
  "hsl": {
    "h": 260,
    "s": 8.108,
    "l": 14.51
  },
  "oklch": {
    "l": 0.25664,
    "c": 0.01148,
    "h": 300.8
  },
  "luminance": 0.01672
}

Semantic roles & 50–950 ramp

primary
#242228
secondary
#54584E
accent
#B1779E
background
#F5F5F5
surface
#E9E9E9
border
#C5C5C5
text
#040405
muted
#797979

Preview Lab

Preview with #242228

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

Preview Lab → · Contrast checker → · Palette generator →

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