#282134#282134

#282134 is a dark, muted violet. Relative luminance 0.018; OKLCH L 26.5% C 0.036 H 300.9°. Best body text is #FFFFFF at 15.47:1 contrast (WCAG AA passes).

Color values

HEX#282134
RGBrgb(40, 33, 52)
HSLhsl(262, 22%, 17%)
HSVhsv(262, 37%, 20%)
CMYKcmyk(23.1%, 36.5%, 0%, 79.6%)
CIE-LABlab(14.33, 8.21, -11.22)
CIE-LCHlch(14.33, 13.90, 306.18°)
OKLaboklab(26.46% 0.0185 -0.0309)
OKLCHoklch(26.46% 0.036 300.9)
XYZxyz(2.0386, 1.7868, 3.4856)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282134 #2D3421
analogous
#212434 #282134 #322134
triadic
#282134 #342821 #213428
tetradic
#282134 #342124 #2D3421 #213432
square
#282134 #342124 #2D3421 #213432
split-complementary
#282134 #343221 #243421
monochromatic
#0E0C13 #0E0C13 #282134 #453959 #62517F

Accessibility & contrast

On white

15.47
#282134 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#282134 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282134
15.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282134#FFFFFF#000000##FFFFFF
##2821341.0015.471.3615.47
#FFFFFF15.471.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D2435
Deuteranopia (green-blind)
#1E2433
Tritanopia (blue-blind)
#262428
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #282134;
/* rgb */ color: rgb(40, 33, 52);
/* oklch */ color: oklch(26.5% 0.036 300.9);
Tailwind
colors: {
  custom: {
    50: '#625c6b',
    500: '#282134',
    950: '#000000',
  },
}
SCSS
$custom: #282134;
$custom-light: #625c6b;
$custom-dark: #000000;
JSON
{
  "hex": "#282134",
  "rgb": {
    "r": 40,
    "g": 33,
    "b": 52
  },
  "hsl": {
    "h": 262.105,
    "s": 22.353,
    "l": 16.667
  },
  "oklch": {
    "l": 0.26463,
    "c": 0.03603,
    "h": 300.9
  },
  "luminance": 0.01787
}

Semantic roles & 50–950 ramp

primary
#282134
secondary
#5C664B
accent
#BF699F
background
#F5F5F6
surface
#EAE9EB
border
#C6C5C6
text
#050406
muted
#79797A

Preview Lab

Preview with #282134

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

Preview Lab → · Contrast checker → · Palette generator →

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