#28113B#28113B

#28113B is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 23.6% C 0.079 H 306.5°. Best body text is #FFFFFF at 17.02:1 contrast (WCAG AA passes).

Color values

HEX#28113B
RGBrgb(40, 17, 59)
HSLhsl(273, 55%, 15%)
HSVhsv(273, 71%, 23%)
CMYKcmyk(32.2%, 71.2%, 0%, 76.9%)
CIE-LABlab(10.32, 21.42, -22.54)
CIE-LCHlch(10.32, 31.09, 313.53°)
OKLaboklab(23.61% 0.0471 -0.0637)
OKLCHoklch(23.61% 0.079 306.5)
XYZxyz(1.8648, 1.1678, 4.2640)
Luminance0.0117 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28113B #243B11
analogous
#13113B #28113B #3B1139
triadic
#28113B #3B2811 #113B28
tetradic
#28113B #3B1311 #243B11 #11393B
square
#28113B #3B1311 #243B11 #11393B
split-complementary
#28113B #393B11 #113B13
monochromatic
#100718 #100718 #28113B #481F6B #682C9A

Accessibility & contrast

On white

17.02
#28113B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#28113B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28113B
17.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28113B#FFFFFF#000000##FFFFFF
##28113B1.0017.021.2317.02
#FFFFFF17.021.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011B3C
Deuteranopia (green-blind)
#091C3A
Tritanopia (blue-blind)
#251924
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #28113b;
/* rgb */ color: rgb(40, 17, 59);
/* oklch */ color: oklch(23.6% 0.079 306.5);
Tailwind
colors: {
  custom: {
    50: '#645071',
    500: '#28113b',
    950: '#000000',
  },
}
SCSS
$custom: #28113b;
$custom-light: #645071;
$custom-dark: #000000;
JSON
{
  "hex": "#28113b",
  "rgb": {
    "r": 40,
    "g": 17,
    "b": 59
  },
  "hsl": {
    "h": 272.857,
    "s": 55.263,
    "l": 14.902
  },
  "oklch": {
    "l": 0.2361,
    "c": 0.07925,
    "h": 306.5
  },
  "luminance": 0.01168
}

Semantic roles & 50–950 ramp

primary
#28113B
secondary
#517433
accent
#DF498D
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#050207
muted
#7A787A

Preview Lab

Preview with #28113B

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

Preview Lab → · Contrast checker → · Palette generator →

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