#28186E#28186E

#28186E is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.6% C 0.139 H 282.4°. Best body text is #FFFFFF at 14.52:1 contrast (WCAG AA passes).

Color values

HEX#28186E
RGBrgb(40, 24, 110)
HSLhsl(251, 64%, 26%)
HSVhsv(251, 78%, 43%)
CMYKcmyk(63.6%, 78.2%, 0%, 56.9%)
CIE-LABlab(16.65, 33.41, -46.93)
CIE-LCHlch(16.65, 57.60, 305.45°)
OKLaboklab(29.62% 0.0297 -0.1353)
OKLCHoklch(29.62% 0.139 282.4)
XYZxyz(4.0153, 2.2299, 14.9677)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28186E #5E6E18
analogous
#18336E #28186E #53186E
triadic
#28186E #6E2818 #186E28
tetradic
#28186E #6E1833 #5E6E18 #186E53
square
#28186E #6E1833 #5E6E18 #186E53
split-complementary
#28186E #6E5318 #336E18
monochromatic
#090519 #160D3C #28186E #3A23A0 #4D2FD2

Accessibility & contrast

On white

14.52
#28186E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#28186E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28186E
14.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28186E#FFFFFF#000000##FFFFFF
##28186E1.0014.521.4514.52
#FFFFFF14.521.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C70
Deuteranopia (green-blind)
#00266C
Tritanopia (blue-blind)
#003042
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #28186e;
/* rgb */ color: rgb(40, 24, 110);
/* oklch */ color: oklch(29.6% 0.139 282.4);
Tailwind
colors: {
  custom: {
    50: '#6c5799',
    500: '#28186e',
    950: '#000000',
  },
}
SCSS
$custom: #28186e;
$custom-light: #6c5799;
$custom-dark: #000000;
JSON
{
  "hex": "#28186e",
  "rgb": {
    "r": 40,
    "g": 24,
    "b": 110
  },
  "hsl": {
    "h": 251.163,
    "s": 64.179,
    "l": 26.275
  },
  "oklch": {
    "l": 0.29619,
    "c": 0.13853,
    "h": 282.4
  },
  "luminance": 0.0223
}

Semantic roles & 50–950 ramp

primary
#28186E
secondary
#91A43E
accent
#E741C8
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #28186E

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

Preview Lab → · Contrast checker → · Palette generator →

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