#28184E#28184E

#28184E is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.5% C 0.095 H 292.4°. Best body text is #FFFFFF at 15.78:1 contrast (WCAG AA passes).

Color values

HEX#28184E
RGBrgb(40, 24, 78)
HSLhsl(258, 53%, 20%)
HSVhsv(258, 69%, 31%)
CMYKcmyk(48.7%, 69.2%, 0%, 69.4%)
CIE-LABlab(13.56, 22.79, -30.62)
CIE-LCHlch(13.56, 38.17, 306.67°)
OKLaboklab(26.46% 0.036 -0.0875)
OKLCHoklch(26.46% 0.095 292.4)
XYZxyz(2.5765, 1.6544, 7.3898)
Luminance0.0165 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28184E #3E4E18
analogous
#18234E #28184E #43184E
triadic
#28184E #4E2818 #184E28
tetradic
#28184E #4E1823 #3E4E18 #184E43
square
#28184E #4E1823 #3E4E18 #184E43
split-complementary
#28184E #4E4318 #234E18
monochromatic
#0C0717 #100A1F #28184E #40267D #5835AC

Accessibility & contrast

On white

15.78
#28184E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#28184E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28184E
15.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28184E#FFFFFF#000000##FFFFFF
##28184E1.0015.781.3315.78
#FFFFFF15.781.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002350
Deuteranopia (green-blind)
#00224D
Tritanopia (blue-blind)
#1D2530
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #28184e;
/* rgb */ color: rgb(40, 24, 78);
/* oklch */ color: oklch(26.5% 0.095 292.4);
Tailwind
colors: {
  custom: {
    50: '#665680',
    500: '#28184e',
    950: '#000000',
  },
}
SCSS
$custom: #28184e;
$custom-light: #665680;
$custom-dark: #000000;
JSON
{
  "hex": "#28184e",
  "rgb": {
    "r": 40,
    "g": 24,
    "b": 78
  },
  "hsl": {
    "h": 257.778,
    "s": 52.941,
    "l": 20
  },
  "oklch": {
    "l": 0.26456,
    "c": 0.09458,
    "h": 292.4
  },
  "luminance": 0.01654
}

Semantic roles & 50–950 ramp

primary
#28184E
secondary
#70853D
accent
#DC4BB1
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #28184E

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

Preview Lab → · Contrast checker → · Palette generator →

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