#28103C#28103C

#28103C is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.5% C 0.082 H 306.1°. Best body text is #FFFFFF at 17.08:1 contrast (WCAG AA passes).

Color values

HEX#28103C
RGBrgb(40, 16, 60)
HSLhsl(273, 58%, 15%)
HSVhsv(273, 73%, 24%)
CMYKcmyk(33.3%, 73.3%, 0%, 76.5%)
CIE-LABlab(10.17, 22.33, -23.50)
CIE-LCHlch(10.17, 32.41, 313.54°)
OKLaboklab(23.53% 0.0486 -0.0665)
OKLCHoklch(23.53% 0.082 306.1)
XYZxyz(1.8758, 1.1480, 4.3968)
Luminance0.0115 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28103C #243C10
analogous
#12103C #28103C #3C103A
triadic
#28103C #3C2810 #103C28
tetradic
#28103C #3C1210 #243C10 #103A3C
square
#28103C #3C1210 #243C10 #103A3C
split-complementary
#28103C #3A3C10 #103C12
monochromatic
#100618 #100618 #28103C #481D6C #682A9D

Accessibility & contrast

On white

17.08
#28103C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#28103C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28103C
17.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28103C#FFFFFF#000000##FFFFFF
##28103C1.0017.081.2317.08
#FFFFFF17.081.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B3D
Deuteranopia (green-blind)
#061C3B
Tritanopia (blue-blind)
#251924
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #28103c;
/* rgb */ color: rgb(40, 16, 60);
/* oklch */ color: oklch(23.5% 0.082 306.1);
Tailwind
colors: {
  custom: {
    50: '#645072',
    500: '#28103c',
    950: '#000000',
  },
}
SCSS
$custom: #28103c;
$custom-light: #645072;
$custom-dark: #000000;
JSON
{
  "hex": "#28103c",
  "rgb": {
    "r": 40,
    "g": 16,
    "b": 60
  },
  "hsl": {
    "h": 272.727,
    "s": 57.895,
    "l": 14.902
  },
  "oklch": {
    "l": 0.23526,
    "c": 0.08234,
    "h": 306.1
  },
  "luminance": 0.01148
}

Semantic roles & 50–950 ramp

primary
#28103C
secondary
#517632
accent
#E1478D
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#050208
muted
#7A787B

Preview Lab

Preview with #28103C

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

Preview Lab → · Contrast checker → · Palette generator →

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