#282236#282236

#282236 is a dark, muted violet. Relative luminance 0.019; OKLCH L 26.8% C 0.037 H 297.6°. Best body text is #FFFFFF at 15.30:1 contrast (WCAG AA passes).

Color values

HEX#282236
RGBrgb(40, 34, 54)
HSLhsl(258, 23%, 17%)
HSVhsv(258, 37%, 21%)
CMYKcmyk(25.9%, 37%, 0%, 78.8%)
CIE-LABlab(14.74, 8.07, -11.99)
CIE-LCHlch(14.74, 14.46, 303.95°)
OKLaboklab(26.82% 0.0173 -0.0331)
OKLCHoklch(26.82% 0.037 297.6)
XYZxyz(2.1128, 1.8615, 3.7373)
Luminance0.0186 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282236 #303622
analogous
#222636 #282236 #322236
triadic
#282236 #362822 #223628
tetradic
#282236 #362226 #303622 #223632
square
#282236 #362226 #303622 #223632
split-complementary
#282236 #363222 #263622
monochromatic
#0E0C13 #0E0C13 #282236 #443A5C #605181

Accessibility & contrast

On white

15.30
#282236 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#282236 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282236
15.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282236#FFFFFF#000000##FFFFFF
##2822361.0015.301.3715.30
#FFFFFF15.301.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D2537
Deuteranopia (green-blind)
#1E2535
Tritanopia (blue-blind)
#252529
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #282236;
/* rgb */ color: rgb(40, 34, 54);
/* oklch */ color: oklch(26.8% 0.037 297.6);
Tailwind
colors: {
  custom: {
    50: '#625d6d',
    500: '#282236',
    950: '#000000',
  },
}
SCSS
$custom: #282236;
$custom-light: #625d6d;
$custom-dark: #000000;
JSON
{
  "hex": "#282236",
  "rgb": {
    "r": 40,
    "g": 34,
    "b": 54
  },
  "hsl": {
    "h": 258,
    "s": 22.727,
    "l": 17.255
  },
  "oklch": {
    "l": 0.26817,
    "c": 0.03739,
    "h": 297.6
  },
  "luminance": 0.01862
}

Semantic roles & 50–950 ramp

primary
#282236
secondary
#60684C
accent
#BF69A5
background
#F5F5F6
surface
#EAE9EB
border
#C6C5C6
text
#050407
muted
#79797A

Preview Lab

Preview with #282236

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

Preview Lab → · Contrast checker → · Palette generator →

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