#282030#282030

#282030 is a dark, muted violet. Relative luminance 0.017; OKLCH L 26.0% C 0.031 H 307.1°. Best body text is #FFFFFF at 15.68:1 contrast (WCAG AA passes).

Color values

HEX#282030
RGBrgb(40, 32, 48)
HSLhsl(270, 20%, 16%)
HSVhsv(270, 33%, 19%)
CMYKcmyk(16.7%, 33.3%, 0%, 81.2%)
CIE-LABlab(13.81, 7.79, -9.15)
CIE-LCHlch(13.81, 12.02, 310.39°)
OKLaboklab(26% 0.019 -0.025)
OKLCHoklch(26% 0.031 307.1)
XYZxyz(1.9250, 1.6976, 3.0220)
Luminance0.0170 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282030 #283020
analogous
#202030 #282030 #302030
triadic
#282030 #302820 #203028
tetradic
#282030 #302020 #283020 #203030
square
#282030 #302020 #283020 #203030
split-complementary
#282030 #303020 #203020
monochromatic
#0F0C12 #0F0C12 #282030 #473855 #655179

Accessibility & contrast

On white

15.68
#282030 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#282030 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282030
15.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282030#FFFFFF#000000##FFFFFF
##2820301.0015.681.3415.68
#FFFFFF15.681.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D2331
Deuteranopia (green-blind)
#1F2330
Tritanopia (blue-blind)
#272226
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #282030;
/* rgb */ color: rgb(40, 32, 48);
/* oklch */ color: oklch(26.0% 0.031 307.1);
Tailwind
colors: {
  custom: {
    50: '#625b68',
    500: '#282030',
    950: '#000000',
  },
}
SCSS
$custom: #282030;
$custom-light: #625b68;
$custom-dark: #000000;
JSON
{
  "hex": "#282030",
  "rgb": {
    "r": 40,
    "g": 32,
    "b": 48
  },
  "hsl": {
    "h": 270,
    "s": 20,
    "l": 15.686
  },
  "oklch": {
    "l": 0.26004,
    "c": 0.0314,
    "h": 307.1
  },
  "luminance": 0.01698
}

Semantic roles & 50–950 ramp

primary
#282030
secondary
#56624A
accent
#BD6B94
background
#F5F5F6
surface
#EAE9EB
border
#C6C5C6
text
#050406
muted
#79797A

Preview Lab

Preview with #282030

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

Preview Lab → · Contrast checker → · Palette generator →

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