#28113A#28113A

#28113A is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 23.5% C 0.078 H 307.3°. Best body text is #FFFFFF at 17.05:1 contrast (WCAG AA passes).

Color values

HEX#28113A
RGBrgb(40, 17, 58)
HSLhsl(274, 55%, 15%)
HSVhsv(274, 71%, 23%)
CMYKcmyk(31%, 70.7%, 0%, 77.3%)
CIE-LABlab(10.24, 21.13, -21.95)
CIE-LCHlch(10.24, 30.47, 313.91°)
OKLaboklab(23.53% 0.0472 -0.062)
OKLCHoklch(23.53% 0.078 307.3)
XYZxyz(1.8391, 1.1575, 4.1287)
Luminance0.0116 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28113A #233A11
analogous
#14113A #28113A #3A1138
triadic
#28113A #3A2811 #113A28
tetradic
#28113A #3A1411 #233A11 #11383A
square
#28113A #3A1411 #233A11 #11383A
split-complementary
#28113A #383A11 #113A14
monochromatic
#100718 #100718 #28113A #491F69 #692D99

Accessibility & contrast

On white

17.05
#28113A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28113A
17.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28113A#FFFFFF#000000##FFFFFF
##28113A1.0017.051.2317.05
#FFFFFF17.051.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#021B3B
Deuteranopia (green-blind)
#0A1C39
Tritanopia (blue-blind)
#251923
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #28113a;
/* rgb */ color: rgb(40, 17, 58);
/* oklch */ color: oklch(23.5% 0.078 307.3);
Tailwind
colors: {
  custom: {
    50: '#645070',
    500: '#28113a',
    950: '#000000',
  },
}
SCSS
$custom: #28113a;
$custom-light: #645070;
$custom-dark: #000000;
JSON
{
  "hex": "#28113a",
  "rgb": {
    "r": 40,
    "g": 17,
    "b": 58
  },
  "hsl": {
    "h": 273.659,
    "s": 54.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.23529,
    "c": 0.07789,
    "h": 307.3
  },
  "luminance": 0.01158
}

Semantic roles & 50–950 ramp

primary
#28113A
secondary
#507333
accent
#DE4A8B
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#050207
muted
#7A787A

Preview Lab

Preview with #28113A

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

Preview Lab → · Contrast checker → · Palette generator →

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