#28044A#28044A

#28044A is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 23.3% C 0.116 H 300.4°. Best body text is #FFFFFF at 17.41:1 contrast (WCAG AA passes).

Color values

HEX#28044A
RGBrgb(40, 4, 74)
HSLhsl(271, 90%, 15%)
HSVhsv(271, 95%, 29%)
CMYKcmyk(45.9%, 94.6%, 0%, 71%)
CIE-LABlab(9.26, 32.63, -34.87)
CIE-LCHlch(9.26, 47.76, 313.10°)
OKLaboklab(23.3% 0.0586 -0.0998)
OKLCHoklch(23.3% 0.116 300.4)
XYZxyz(2.1542, 1.0323, 6.5630)
Luminance0.0103 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28044A #264A04
analogous
#05044A #28044A #4A0449
triadic
#28044A #4A2804 #044A28
tetradic
#28044A #4A0504 #264A04 #04494A
square
#28044A #4A0504 #264A04 #04494A
split-complementary
#28044A #494A04 #044A05
monochromatic
#10021D #10021D #28044A #470784 #670ABE

Accessibility & contrast

On white

17.41
#28044A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#28044A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28044A
17.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28044A#FFFFFF#000000##FFFFFF
##28044A1.0017.411.2117.41
#FFFFFF17.411.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A4C
Deuteranopia (green-blind)
#001949
Tritanopia (blue-blind)
#201929
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #28044a;
/* rgb */ color: rgb(40, 4, 74);
/* oklch */ color: oklch(23.3% 0.116 300.4);
Tailwind
colors: {
  custom: {
    50: '#674a7d',
    500: '#28044a',
    950: '#000000',
  },
}
SCSS
$custom: #28044a;
$custom-light: #674a7d;
$custom-dark: #000000;
JSON
{
  "hex": "#28044a",
  "rgb": {
    "r": 40,
    "g": 4,
    "b": 74
  },
  "hsl": {
    "h": 270.857,
    "s": 89.744,
    "l": 15.294
  },
  "oklch": {
    "l": 0.23298,
    "c": 0.11571,
    "h": 300.4
  },
  "luminance": 0.01032
}

Semantic roles & 50–950 ramp

primary
#28044A
secondary
#538A20
accent
#FF2991
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06010A
muted
#7A777C

Preview Lab

Preview with #28044A

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

Preview Lab → · Contrast checker → · Palette generator →

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