#28043B#28043B

#28043B is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.8% C 0.100 H 310.3°. Best body text is #FFFFFF at 17.94:1 contrast (WCAG AA passes).

Color values

HEX#28043B
RGBrgb(40, 4, 59)
HSLhsl(279, 87%, 12%)
HSVhsv(279, 93%, 23%)
CMYKcmyk(32.2%, 93.2%, 0%, 76.9%)
CIE-LABlab(7.71, 28.75, -26.76)
CIE-LCHlch(7.71, 39.27, 317.06°)
OKLaboklab(21.75% 0.0645 -0.076)
OKLCHoklch(21.75% 0.1 310.3)
XYZxyz(1.7077, 0.8538, 4.2117)
Luminance0.0085 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28043B #173B04
analogous
#0D043B #28043B #3B0433
triadic
#28043B #3B2804 #043B28
tetradic
#28043B #3B0D04 #173B04 #04333B
square
#28043B #3B0D04 #173B04 #04333B
split-complementary
#28043B #333B04 #043B0D
monochromatic
#13021D #13021D #28043B #4F0874 #760CAE

Accessibility & contrast

On white

17.94
#28043B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#28043B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28043B
17.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28043B#FFFFFF#000000##FFFFFF
##28043B1.0017.941.1717.94
#FFFFFF17.941.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00153C
Deuteranopia (green-blind)
#00173A
Tritanopia (blue-blind)
#251220
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #28043b;
/* rgb */ color: rgb(40, 4, 59);
/* oklch */ color: oklch(21.8% 0.100 310.3);
Tailwind
colors: {
  custom: {
    50: '#654971',
    500: '#28043b',
    950: '#000000',
  },
}
SCSS
$custom: #28043b;
$custom-light: #654971;
$custom-dark: #000000;
JSON
{
  "hex": "#28043b",
  "rgb": {
    "r": 40,
    "g": 4,
    "b": 59
  },
  "hsl": {
    "h": 279.273,
    "s": 87.302,
    "l": 12.353
  },
  "oklch": {
    "l": 0.21754,
    "c": 0.09965,
    "h": 310.3
  },
  "luminance": 0.00854
}

Semantic roles & 50–950 ramp

primary
#28043B
secondary
#3F7D1E
accent
#FD2A73
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060108
muted
#7A777B

Preview Lab

Preview with #28043B

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

Preview Lab → · Contrast checker → · Palette generator →

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