#28194F#28194F

#28194F is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.7% C 0.094 H 291.5°. Best body text is #FFFFFF at 15.65:1 contrast (WCAG AA passes).

Color values

HEX#28194F
RGBrgb(40, 25, 79)
HSLhsl(257, 52%, 20%)
HSVhsv(257, 68%, 31%)
CMYKcmyk(49.4%, 68.4%, 0%, 69%)
CIE-LABlab(13.89, 22.46, -30.77)
CIE-LCHlch(13.89, 38.09, 306.14°)
OKLaboklab(26.73% 0.0346 -0.0879)
OKLCHoklch(26.73% 0.094 291.5)
XYZxyz(2.6336, 1.7108, 7.5871)
Luminance0.0171 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28194F #404F19
analogous
#19254F #28194F #43194F
triadic
#28194F #4F2819 #194F28
tetradic
#28194F #4F1925 #404F19 #194F43
square
#28194F #4F1925 #404F19 #194F43
split-complementary
#28194F #4F4319 #254F19
monochromatic
#0C0717 #100A21 #28194F #40287D #5736AC

Accessibility & contrast

On white

15.65
#28194F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#28194F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28194F
15.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28194F#FFFFFF#000000##FFFFFF
##28194F1.0015.651.3415.65
#FFFFFF15.651.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002451
Deuteranopia (green-blind)
#00224E
Tritanopia (blue-blind)
#1C2531
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #28194f;
/* rgb */ color: rgb(40, 25, 79);
/* oklch */ color: oklch(26.7% 0.094 291.5);
Tailwind
colors: {
  custom: {
    50: '#665681',
    500: '#28194f',
    950: '#000000',
  },
}
SCSS
$custom: #28194f;
$custom-light: #665681;
$custom-dark: #000000;
JSON
{
  "hex": "#28194f",
  "rgb": {
    "r": 40,
    "g": 25,
    "b": 79
  },
  "hsl": {
    "h": 256.667,
    "s": 51.923,
    "l": 20.392
  },
  "oklch": {
    "l": 0.26725,
    "c": 0.09446,
    "h": 291.5
  },
  "luminance": 0.01711
}

Semantic roles & 50–950 ramp

primary
#28194F
secondary
#72853E
accent
#DB4CB4
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #28194F

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

Preview Lab → · Contrast checker → · Palette generator →

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