#28103B#28103B

#28103B is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.4% C 0.081 H 306.9°. Best body text is #FFFFFF at 17.11:1 contrast (WCAG AA passes).

Color values

HEX#28103B
RGBrgb(40, 16, 59)
HSLhsl(273, 57%, 15%)
HSVhsv(273, 73%, 23%)
CMYKcmyk(32.2%, 72.9%, 0%, 76.9%)
CIE-LABlab(10.09, 22.04, -22.91)
CIE-LCHlch(10.09, 31.79, 313.89°)
OKLaboklab(23.44% 0.0486 -0.0648)
OKLCHoklch(23.44% 0.081 306.9)
XYZxyz(1.8496, 1.1375, 4.2589)
Luminance0.0114 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28103B #233B10
analogous
#12103B #28103B #3B1039
triadic
#28103B #3B2810 #103B28
tetradic
#28103B #3B1210 #233B10 #10393B
square
#28103B #3B1210 #233B10 #10393B
split-complementary
#28103B #393B10 #103B12
monochromatic
#100718 #100718 #28103B #491D6B #692A9B

Accessibility & contrast

On white

17.11
#28103B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28103B
17.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28103B#FFFFFF#000000##FFFFFF
##28103B1.0017.111.2317.11
#FFFFFF17.111.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B3C
Deuteranopia (green-blind)
#081C3A
Tritanopia (blue-blind)
#251923
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #28103b;
/* rgb */ color: rgb(40, 16, 59);
/* oklch */ color: oklch(23.4% 0.081 306.9);
Tailwind
colors: {
  custom: {
    50: '#645071',
    500: '#28103b',
    950: '#000000',
  },
}
SCSS
$custom: #28103b;
$custom-light: #645071;
$custom-dark: #000000;
JSON
{
  "hex": "#28103b",
  "rgb": {
    "r": 40,
    "g": 16,
    "b": 59
  },
  "hsl": {
    "h": 273.488,
    "s": 57.333,
    "l": 14.706
  },
  "oklch": {
    "l": 0.23443,
    "c": 0.081,
    "h": 306.9
  },
  "luminance": 0.01137
}

Semantic roles & 50–950 ramp

primary
#28103B
secondary
#507532
accent
#E1478B
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#050207
muted
#7A787A

Preview Lab

Preview with #28103B

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

Preview Lab → · Contrast checker → · Palette generator →

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