#28183B#28183B

#28183B is a very dark, moderate violet. Relative luminance 0.014; OKLCH L 24.9% C 0.066 H 303.0°. Best body text is #FFFFFF at 16.36:1 contrast (WCAG AA passes).

Color values

HEX#28183B
RGBrgb(40, 24, 59)
HSLhsl(267, 42%, 16%)
HSVhsv(267, 59%, 23%)
CMYKcmyk(32.2%, 59.3%, 0%, 76.9%)
CIE-LABlab(12.09, 16.75, -19.71)
CIE-LCHlch(12.09, 25.86, 310.35°)
OKLaboklab(24.91% 0.036 -0.0554)
OKLCHoklch(24.91% 0.066 303)
XYZxyz(1.9909, 1.4202, 4.3061)
Luminance0.0142 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28183B #2B3B18
analogous
#181A3B #28183B #3A183B
triadic
#28183B #3B2818 #183B28
tetradic
#28183B #3B181A #2B3B18 #183B3A
square
#28183B #3B181A #2B3B18 #183B3A
split-complementary
#28183B #3B3A18 #1A3B18
monochromatic
#0F0916 #0F0916 #28183B #452A67 #633B92

Accessibility & contrast

On white

16.36
#28183B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#28183B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28183B
16.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28183B#FFFFFF#000000##FFFFFF
##28183B1.0016.361.2816.36
#FFFFFF16.361.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D1F3C
Deuteranopia (green-blind)
#11203A
Tritanopia (blue-blind)
#251E26
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #28183b;
/* rgb */ color: rgb(40, 24, 59);
/* oklch */ color: oklch(24.9% 0.066 303.0);
Tailwind
colors: {
  custom: {
    50: '#635571',
    500: '#28183b',
    950: '#000000',
  },
}
SCSS
$custom: #28183b;
$custom-light: #635571;
$custom-dark: #000000;
JSON
{
  "hex": "#28183b",
  "rgb": {
    "r": 40,
    "g": 24,
    "b": 59
  },
  "hsl": {
    "h": 267.429,
    "s": 42.169,
    "l": 16.275
  },
  "oklch": {
    "l": 0.24912,
    "c": 0.06611,
    "h": 303
  },
  "luminance": 0.0142
}

Semantic roles & 50–950 ramp

primary
#28183B
secondary
#5A713E
accent
#D25699
background
#F6F4F6
surface
#EBE8EC
border
#C6C4C7
text
#050307
muted
#7A787A

Preview Lab

Preview with #28183B

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

Preview Lab → · Contrast checker → · Palette generator →

#28183B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva