#28043F#28043F

#28043F is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 22.1% C 0.104 H 307.4°. Best body text is #FFFFFF at 17.81:1 contrast (WCAG AA passes).

Color values

HEX#28043F
RGBrgb(40, 4, 63)
HSLhsl(277, 88%, 13%)
HSVhsv(277, 94%, 25%)
CMYKcmyk(36.5%, 93.7%, 0%, 75.3%)
CIE-LABlab(8.10, 29.77, -29.00)
CIE-LCHlch(8.10, 41.56, 315.76°)
OKLaboklab(22.15% 0.0631 -0.0826)
OKLCHoklch(22.15% 0.104 307.4)
XYZxyz(1.8155, 0.8969, 4.7791)
Luminance0.0090 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28043F #1B3F04
analogous
#0A043F #28043F #3F0438
triadic
#28043F #3F2804 #043F28
tetradic
#28043F #3F0A04 #1B3F04 #04383F
square
#28043F #3F0A04 #1B3F04 #04383F
split-complementary
#28043F #383F04 #043F0A
monochromatic
#12021D #12021D #28043F #4D0879 #710BB2

Accessibility & contrast

On white

17.81
#28043F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#28043F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28043F
17.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28043F#FFFFFF#000000##FFFFFF
##28043F1.0017.811.1817.81
#FFFFFF17.811.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001741
Deuteranopia (green-blind)
#00183E
Tritanopia (blue-blind)
#241422
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #28043f;
/* rgb */ color: rgb(40, 4, 63);
/* oklch */ color: oklch(22.1% 0.104 307.4);
Tailwind
colors: {
  custom: {
    50: '#654975',
    500: '#28043f',
    950: '#000000',
  },
}
SCSS
$custom: #28043f;
$custom-light: #654975;
$custom-dark: #000000;
JSON
{
  "hex": "#28043f",
  "rgb": {
    "r": 40,
    "g": 4,
    "b": 63
  },
  "hsl": {
    "h": 276.61,
    "s": 88.06,
    "l": 13.137
  },
  "oklch": {
    "l": 0.22148,
    "c": 0.10389,
    "h": 307.4
  },
  "luminance": 0.00897
}

Semantic roles & 50–950 ramp

primary
#28043F
secondary
#45801E
accent
#FE2A7C
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #28043F

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

Preview Lab → · Contrast checker → · Palette generator →

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