#28033F#28033F

#28033F is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 22.0% C 0.105 H 307.6°. Best body text is #FFFFFF at 17.87:1 contrast (WCAG AA passes).

Color values

HEX#28033F
RGBrgb(40, 3, 63)
HSLhsl(277, 91%, 13%)
HSVhsv(277, 95%, 25%)
CMYKcmyk(36.5%, 95.2%, 0%, 75.3%)
CIE-LABlab(7.90, 30.35, -29.32)
CIE-LCHlch(7.90, 42.20, 315.99°)
OKLaboklab(22.01% 0.0644 -0.0835)
OKLCHoklch(22.01% 0.105 307.6)
XYZxyz(1.8046, 0.8751, 4.7755)
Luminance0.0088 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28033F #1A3F03
analogous
#0A033F #28033F #3F0338
triadic
#28033F #3F2803 #033F28
tetradic
#28033F #3F0A03 #1A3F03 #03383F
square
#28033F #3F0A03 #1A3F03 #03383F
split-complementary
#28033F #383F03 #033F0A
monochromatic
#13011D #13011D #28033F #4D0679 #7209B4

Accessibility & contrast

On white

17.87
#28033F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28033F
17.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28033F#FFFFFF#000000##FFFFFF
##28033F1.0017.871.1817.87
#FFFFFF17.871.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001641
Deuteranopia (green-blind)
#00183E
Tritanopia (blue-blind)
#241322
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #28033f;
/* rgb */ color: rgb(40, 3, 63);
/* oklch */ color: oklch(22.0% 0.105 307.6);
Tailwind
colors: {
  custom: {
    50: '#664875',
    500: '#28033f',
    950: '#000000',
  },
}
SCSS
$custom: #28033f;
$custom-light: #664875;
$custom-dark: #000000;
JSON
{
  "hex": "#28033f",
  "rgb": {
    "r": 40,
    "g": 3,
    "b": 63
  },
  "hsl": {
    "h": 277,
    "s": 90.909,
    "l": 12.941
  },
  "oklch": {
    "l": 0.22012,
    "c": 0.10542,
    "h": 307.6
  },
  "luminance": 0.00875
}

Semantic roles & 50–950 ramp

primary
#28033F
secondary
#43811D
accent
#FF297B
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #28033F

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

Preview Lab → · Contrast checker → · Palette generator →

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