#28034E#28034E

#28034E is a very dark, vivid violet. Relative luminance 0.011; OKLCH L 23.6% C 0.121 H 298.4°. Best body text is #FFFFFF at 17.31:1 contrast (WCAG AA passes).

Color values

HEX#28034E
RGBrgb(40, 3, 78)
HSLhsl(270, 93%, 16%)
HSVhsv(270, 96%, 31%)
CMYKcmyk(48.7%, 96.2%, 0%, 69.4%)
CIE-LABlab(9.53, 34.20, -37.20)
CIE-LCHlch(9.53, 50.53, 312.60°)
OKLaboklab(23.62% 0.0577 -0.1066)
OKLCHoklch(23.62% 0.121 298.4)
XYZxyz(2.2824, 1.0663, 7.2918)
Luminance0.0107 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28034E #294E03
analogous
#03034E #28034E #4D034E
triadic
#28034E #4E2803 #034E28
tetradic
#28034E #4E0303 #294E03 #034E4D
square
#28034E #4E0303 #294E03 #034E4D
split-complementary
#28034E #4E4D03 #034E03
monochromatic
#0F011D #0F011D #28034E #460589 #6408C4

Accessibility & contrast

On white

17.31
#28034E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#28034E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28034E
17.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28034E#FFFFFF#000000##FFFFFF
##28034E1.0017.311.2117.31
#FFFFFF17.311.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B50
Deuteranopia (green-blind)
#001A4D
Tritanopia (blue-blind)
#1E1A2B
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #28034e;
/* rgb */ color: rgb(40, 3, 78);
/* oklch */ color: oklch(23.6% 0.121 298.4);
Tailwind
colors: {
  custom: {
    50: '#684a80',
    500: '#28034e',
    950: '#000000',
  },
}
SCSS
$custom: #28034e;
$custom-light: #684a80;
$custom-dark: #000000;
JSON
{
  "hex": "#28034e",
  "rgb": {
    "r": 40,
    "g": 3,
    "b": 78
  },
  "hsl": {
    "h": 269.6,
    "s": 92.593,
    "l": 15.882
  },
  "oklch": {
    "l": 0.2362,
    "c": 0.12121,
    "h": 298.4
  },
  "luminance": 0.01066
}

Semantic roles & 50–950 ramp

primary
#28034E
secondary
#578E1E
accent
#FF2995
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06010A
muted
#7A777C

Preview Lab

Preview with #28034E

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

Preview Lab → · Contrast checker → · Palette generator →

#28034E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva