#28113C#28113C

#28113C is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 23.7% C 0.081 H 305.7°. Best body text is #FFFFFF at 17.00:1 contrast (WCAG AA passes).

Color values

HEX#28113C
RGBrgb(40, 17, 60)
HSLhsl(272, 56%, 15%)
HSVhsv(272, 72%, 24%)
CMYKcmyk(33.3%, 71.7%, 0%, 76.5%)
CIE-LABlab(10.40, 21.71, -23.13)
CIE-LCHlch(10.40, 31.72, 313.18°)
OKLaboklab(23.69% 0.0471 -0.0654)
OKLCHoklch(23.69% 0.081 305.7)
XYZxyz(1.8910, 1.1783, 4.4019)
Luminance0.0118 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28113C #253C11
analogous
#12113C #28113C #3C113A
triadic
#28113C #3C2811 #113C28
tetradic
#28113C #3C1211 #253C11 #113A3C
square
#28113C #3C1211 #253C11 #113A3C
split-complementary
#28113C #3A3C11 #113C12
monochromatic
#100718 #100718 #28113C #481F6C #682C9B

Accessibility & contrast

On white

17.00
#28113C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#28113C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28113C
17.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28113C#FFFFFF#000000##FFFFFF
##28113C1.0017.001.2417.00
#FFFFFF17.001.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF17.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C3D
Deuteranopia (green-blind)
#081C3B
Tritanopia (blue-blind)
#251A24
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #28113c;
/* rgb */ color: rgb(40, 17, 60);
/* oklch */ color: oklch(23.7% 0.081 305.7);
Tailwind
colors: {
  custom: {
    50: '#645072',
    500: '#28113c',
    950: '#000000',
  },
}
SCSS
$custom: #28113c;
$custom-light: #645072;
$custom-dark: #000000;
JSON
{
  "hex": "#28113c",
  "rgb": {
    "r": 40,
    "g": 17,
    "b": 60
  },
  "hsl": {
    "h": 272.093,
    "s": 55.844,
    "l": 15.098
  },
  "oklch": {
    "l": 0.23692,
    "c": 0.08063,
    "h": 305.7
  },
  "luminance": 0.01178
}

Semantic roles & 50–950 ramp

primary
#28113C
secondary
#527533
accent
#DF498F
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#050208
muted
#7A787B

Preview Lab

Preview with #28113C

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

Preview Lab → · Contrast checker → · Palette generator →

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