#282434#282434

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

Color values

HEX#282434
RGBrgb(40, 36, 52)
HSLhsl(255, 18%, 17%)
HSVhsv(255, 31%, 20%)
CMYKcmyk(23.1%, 30.8%, 0%, 79.6%)
CIE-LABlab(15.28, 6.04, -9.75)
CIE-LCHlch(15.28, 11.47, 301.79°)
OKLaboklab(27.2% 0.013 -0.0268)
OKLCHoklch(27.2% 0.03 295.8)
XYZxyz(2.1256, 1.9608, 3.5146)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282434 #303424
analogous
#242834 #282434 #302434
triadic
#282434 #342824 #243428
tetradic
#282434 #342428 #303424 #243430
square
#282434 #342428 #303424 #243430
split-complementary
#282434 #343024 #283424
monochromatic
#0E0D12 #0E0D12 #282434 #443D58 #60567C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##282434#FFFFFF#000000##FFFFFF
##2824341.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)
#202635
Deuteranopia (green-blind)
#212634
Tritanopia (blue-blind)
#26262A
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #282434;
/* rgb */ color: rgb(40, 36, 52);
/* oklch */ color: oklch(27.2% 0.030 295.8);
Tailwind
colors: {
  custom: {
    50: '#625e6b',
    500: '#282434',
    950: '#000000',
  },
}
SCSS
$custom: #282434;
$custom-light: #625e6b;
$custom-dark: #000000;
JSON
{
  "hex": "#282434",
  "rgb": {
    "r": 40,
    "g": 36,
    "b": 52
  },
  "hsl": {
    "h": 255,
    "s": 18.182,
    "l": 17.255
  },
  "oklch": {
    "l": 0.27197,
    "c": 0.02973,
    "h": 295.8
  },
  "luminance": 0.01961
}

Semantic roles & 50–950 ramp

primary
#282434
secondary
#60654E
accent
#BB6DA7
background
#F5F5F6
surface
#EAE9EB
border
#C6C5C6
text
#050406
muted
#79797A

Preview Lab

Preview with #282434

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

Preview Lab → · Contrast checker → · Palette generator →

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