#28186C#28186C

#28186C is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.4% C 0.136 H 282.9°. Best body text is #FFFFFF at 14.61:1 contrast (WCAG AA passes).

Color values

HEX#28186C
RGBrgb(40, 24, 108)
HSLhsl(251, 64%, 26%)
HSVhsv(251, 78%, 42%)
CMYKcmyk(63%, 77.8%, 0%, 57.6%)
CIE-LABlab(16.44, 32.75, -45.97)
CIE-LCHlch(16.44, 56.44, 305.46°)
OKLaboklab(29.41% 0.0303 -0.1325)
OKLCHoklch(29.41% 0.136 282.9)
XYZxyz(3.9076, 2.1868, 14.4006)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28186C #5C6C18
analogous
#18326C #28186C #52186C
triadic
#28186C #6C2818 #186C28
tetradic
#28186C #6C1832 #5C6C18 #186C52
square
#28186C #6C1832 #5C6C18 #186C52
split-complementary
#28186C #6C5218 #326C18
monochromatic
#090619 #150D3A #28186C #3B239E #4D2ED0

Accessibility & contrast

On white

14.61
#28186C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#28186C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28186C
14.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28186C#FFFFFF#000000##FFFFFF
##28186C1.0014.611.4414.61
#FFFFFF14.611.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6E
Deuteranopia (green-blind)
#00266A
Tritanopia (blue-blind)
#002F40
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #28186c;
/* rgb */ color: rgb(40, 24, 108);
/* oklch */ color: oklch(29.4% 0.136 282.9);
Tailwind
colors: {
  custom: {
    50: '#6b5797',
    500: '#28186c',
    950: '#000000',
  },
}
SCSS
$custom: #28186c;
$custom-light: #6b5797;
$custom-dark: #000000;
JSON
{
  "hex": "#28186c",
  "rgb": {
    "r": 40,
    "g": 24,
    "b": 108
  },
  "hsl": {
    "h": 251.429,
    "s": 63.636,
    "l": 25.882
  },
  "oklch": {
    "l": 0.29406,
    "c": 0.13591,
    "h": 282.9
  },
  "luminance": 0.02187
}

Semantic roles & 50–950 ramp

primary
#28186C
secondary
#8FA23E
accent
#E741C7
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #28186C

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

Preview Lab → · Contrast checker → · Palette generator →

#28186C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva