#282137#282137

#282137 is a dark, muted violet. Relative luminance 0.018; OKLCH L 26.6% C 0.041 H 298.2°. Best body text is #FFFFFF at 15.41:1 contrast (WCAG AA passes).

Color values

HEX#282137
RGBrgb(40, 33, 55)
HSLhsl(259, 25%, 17%)
HSVhsv(259, 40%, 22%)
CMYKcmyk(27.3%, 40%, 0%, 78.4%)
CIE-LABlab(14.48, 9.10, -13.10)
CIE-LCHlch(14.48, 15.95, 304.77°)
OKLaboklab(26.64% 0.0195 -0.0363)
OKLCHoklch(26.64% 0.041 298.2)
XYZxyz(2.1084, 1.8147, 3.8529)
Luminance0.0181 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282137 #303721
analogous
#212537 #282137 #332137
triadic
#282137 #372821 #213728
tetradic
#282137 #372125 #303721 #213733
square
#282137 #372125 #303721 #213733
split-complementary
#282137 #373321 #253721
monochromatic
#0E0B13 #0E0B13 #282137 #44385D #604F84

Accessibility & contrast

On white

15.41
#282137 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #282137
15.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282137#FFFFFF#000000##FFFFFF
##2821371.0015.411.3615.41
#FFFFFF15.411.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C2538
Deuteranopia (green-blind)
#1D2436
Tritanopia (blue-blind)
#252529
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #282137;
/* rgb */ color: rgb(40, 33, 55);
/* oklch */ color: oklch(26.6% 0.041 298.2);
Tailwind
colors: {
  custom: {
    50: '#625c6e',
    500: '#282137',
    950: '#000000',
  },
}
SCSS
$custom: #282137;
$custom-light: #625c6e;
$custom-dark: #000000;
JSON
{
  "hex": "#282137",
  "rgb": {
    "r": 40,
    "g": 33,
    "b": 55
  },
  "hsl": {
    "h": 259.091,
    "s": 25,
    "l": 17.255
  },
  "oklch": {
    "l": 0.26635,
    "c": 0.0412,
    "h": 298.2
  },
  "luminance": 0.01815
}

Semantic roles & 50–950 ramp

primary
#282137
secondary
#606A4A
accent
#C166A4
background
#F5F5F6
surface
#EAE9EB
border
#C6C5C6
text
#050407
muted
#79797A

Preview Lab

Preview with #282137

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

Preview Lab → · Contrast checker → · Palette generator →

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