#282040#282040

#282040 is a dark, muted violet. Relative luminance 0.019; OKLCH L 27.0% C 0.059 H 293.6°. Best body text is #FFFFFF at 15.32:1 contrast (WCAG AA passes).

Color values

HEX#282040
RGBrgb(40, 32, 64)
HSLhsl(255, 33%, 19%)
HSVhsv(255, 50%, 25%)
CMYKcmyk(37.5%, 50%, 0%, 74.9%)
CIE-LABlab(14.70, 12.63, -19.09)
CIE-LCHlch(14.70, 22.89, 303.49°)
OKLaboklab(26.97% 0.0234 -0.0536)
OKLCHoklch(26.97% 0.059 293.6)
XYZxyz(2.3168, 1.8543, 5.0853)
Luminance0.0185 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282040 #384020
analogous
#202840 #282040 #382040
triadic
#282040 #402820 #204028
tetradic
#282040 #402028 #384020 #204038
square
#282040 #402028 #384020 #204038
split-complementary
#282040 #403820 #284020
monochromatic
#0D0A14 #0F0C17 #282040 #423469 #5B4992

Accessibility & contrast

On white

15.32
#282040 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #282040
15.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282040#FFFFFF#000000##FFFFFF
##2820401.0015.321.3715.32
#FFFFFF15.321.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#162541
Deuteranopia (green-blind)
#17253F
Tritanopia (blue-blind)
#22262C
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #282040;
/* rgb */ color: rgb(40, 32, 64);
/* oklch */ color: oklch(27.0% 0.059 293.6);
Tailwind
colors: {
  custom: {
    50: '#635b75',
    500: '#282040',
    950: '#000000',
  },
}
SCSS
$custom: #282040;
$custom-light: #635b75;
$custom-dark: #000000;
JSON
{
  "hex": "#282040",
  "rgb": {
    "r": 40,
    "g": 32,
    "b": 64
  },
  "hsl": {
    "h": 255,
    "s": 33.333,
    "l": 18.824
  },
  "oklch": {
    "l": 0.26974,
    "c": 0.05852,
    "h": 293.6
  },
  "luminance": 0.01854
}

Semantic roles & 50–950 ramp

primary
#282040
secondary
#697448
accent
#C95EAF
background
#F5F5F7
surface
#EAE9ED
border
#C6C5C8
text
#050408
muted
#79797B

Preview Lab

Preview with #282040

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

Preview Lab → · Contrast checker → · Palette generator →

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