#282240#282240

#282240 is a dark, muted violet. Relative luminance 0.020; OKLCH L 27.4% C 0.055 H 291.6°. Best body text is #FFFFFF at 15.08:1 contrast (WCAG AA passes).

Color values

HEX#282240
RGBrgb(40, 34, 64)
HSLhsl(252, 31%, 19%)
HSVhsv(252, 47%, 25%)
CMYKcmyk(37.5%, 46.9%, 0%, 74.9%)
CIE-LABlab(15.30, 11.19, -18.14)
CIE-LCHlch(15.30, 21.31, 301.67°)
OKLaboklab(27.43% 0.0201 -0.0509)
OKLCHoklch(27.43% 0.055 291.6)
XYZxyz(2.3723, 1.9653, 5.1038)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282240 #3A4022
analogous
#222B40 #282240 #372240
triadic
#282240 #402822 #224028
tetradic
#282240 #40222B #3A4022 #224037
square
#282240 #40222B #3A4022 #224037
split-complementary
#282240 #403722 #2B4022
monochromatic
#0C0B14 #0F0D18 #282240 #413768 #5A4C90

Accessibility & contrast

On white

15.08
#282240 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#282240 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282240
15.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282240#FFFFFF#000000##FFFFFF
##2822401.0015.081.3915.08
#FFFFFF15.081.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#192741
Deuteranopia (green-blind)
#19263F
Tritanopia (blue-blind)
#22282D
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #282240;
/* rgb */ color: rgb(40, 34, 64);
/* oklch */ color: oklch(27.4% 0.055 291.6);
Tailwind
colors: {
  custom: {
    50: '#635d75',
    500: '#282240',
    950: '#000000',
  },
}
SCSS
$custom: #282240;
$custom-light: #635d75;
$custom-dark: #000000;
JSON
{
  "hex": "#282240",
  "rgb": {
    "r": 40,
    "g": 34,
    "b": 64
  },
  "hsl": {
    "h": 252,
    "s": 30.612,
    "l": 19.216
  },
  "oklch": {
    "l": 0.27429,
    "c": 0.0547,
    "h": 291.6
  },
  "luminance": 0.01965
}

Semantic roles & 50–950 ramp

primary
#282240
secondary
#6B734B
accent
#C761B2
background
#F5F5F7
surface
#EAE9ED
border
#C6C5C8
text
#050408
muted
#79797B

Preview Lab

Preview with #282240

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

Preview Lab → · Contrast checker → · Palette generator →

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