#282238#282238

#282238 is a dark, muted violet. Relative luminance 0.019; OKLCH L 26.9% C 0.041 H 296.1°. Best body text is #FFFFFF at 15.26:1 contrast (WCAG AA passes).

Color values

HEX#282238
RGBrgb(40, 34, 56)
HSLhsl(256, 24%, 18%)
HSVhsv(256, 39%, 22%)
CMYKcmyk(28.6%, 39.3%, 0%, 78%)
CIE-LABlab(14.85, 8.67, -13.24)
CIE-LCHlch(14.85, 15.83, 303.23°)
OKLaboklab(26.93% 0.018 -0.0367)
OKLCHoklch(26.93% 0.041 296.1)
XYZxyz(2.1607, 1.8807, 3.9898)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282238 #323822
analogous
#222738 #282238 #332238
triadic
#282238 #382822 #223828
tetradic
#282238 #382227 #323822 #223833
square
#282238 #382227 #323822 #223833
split-complementary
#282238 #383322 #273822
monochromatic
#0E0C13 #0E0C13 #282238 #43395E #5E5084

Accessibility & contrast

On white

15.26
#282238 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#282238 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282238
15.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282238#FFFFFF#000000##FFFFFF
##2822381.0015.261.3815.26
#FFFFFF15.261.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D2539
Deuteranopia (green-blind)
#1D2537
Tritanopia (blue-blind)
#25262A
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #282238;
/* rgb */ color: rgb(40, 34, 56);
/* oklch */ color: oklch(26.9% 0.041 296.1);
Tailwind
colors: {
  custom: {
    50: '#625d6e',
    500: '#282238',
    950: '#000000',
  },
}
SCSS
$custom: #282238;
$custom-light: #625d6e;
$custom-dark: #000000;
JSON
{
  "hex": "#282238",
  "rgb": {
    "r": 40,
    "g": 34,
    "b": 56
  },
  "hsl": {
    "h": 256.364,
    "s": 24.444,
    "l": 17.647
  },
  "oklch": {
    "l": 0.26932,
    "c": 0.04087,
    "h": 296.1
  },
  "luminance": 0.01881
}

Semantic roles & 50–950 ramp

primary
#282238
secondary
#626A4B
accent
#C167A8
background
#F5F5F6
surface
#EAE9EC
border
#C6C5C7
text
#050407
muted
#79797A

Preview Lab

Preview with #282238

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

Preview Lab → · Contrast checker → · Palette generator →

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