#28103A#28103A

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

Color values

HEX#28103A
RGBrgb(40, 16, 58)
HSLhsl(274, 57%, 15%)
HSVhsv(274, 72%, 23%)
CMYKcmyk(31%, 72.4%, 0%, 77.3%)
CIE-LABlab(10.01, 21.75, -22.32)
CIE-LCHlch(10.01, 31.17, 314.26°)
OKLaboklab(23.36% 0.0487 -0.063)
OKLCHoklch(23.36% 0.08 307.7)
XYZxyz(1.8239, 1.1272, 4.1237)
Luminance0.0113 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28103A #223A10
analogous
#13103A #28103A #3A1037
triadic
#28103A #3A2810 #103A28
tetradic
#28103A #3A1310 #223A10 #10373A
square
#28103A #3A1310 #223A10 #10373A
split-complementary
#28103A #373A10 #103A13
monochromatic
#110718 #110718 #28103A #491D6A #6A2A9A

Accessibility & contrast

On white

17.14
#28103A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28103A
17.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28103A#FFFFFF#000000##FFFFFF
##28103A1.0017.141.2317.14
#FFFFFF17.141.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B3B
Deuteranopia (green-blind)
#091C39
Tritanopia (blue-blind)
#251823
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #28103a;
/* rgb */ color: rgb(40, 16, 58);
/* oklch */ color: oklch(23.4% 0.080 307.7);
Tailwind
colors: {
  custom: {
    50: '#645070',
    500: '#28103a',
    950: '#000000',
  },
}
SCSS
$custom: #28103a;
$custom-light: #645070;
$custom-dark: #000000;
JSON
{
  "hex": "#28103a",
  "rgb": {
    "r": 40,
    "g": 16,
    "b": 58
  },
  "hsl": {
    "h": 274.286,
    "s": 56.757,
    "l": 14.51
  },
  "oklch": {
    "l": 0.23361,
    "c": 0.07966,
    "h": 307.7
  },
  "luminance": 0.01127
}

Semantic roles & 50–950 ramp

primary
#28103A
secondary
#4E7432
accent
#E04889
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#050207
muted
#7A787A

Preview Lab

Preview with #28103A

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

Preview Lab → · Contrast checker → · Palette generator →

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