#28196D#28196D

#28196D is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.7% C 0.136 H 282.4°. Best body text is #FFFFFF at 14.48:1 contrast (WCAG AA passes).

Color values

HEX#28196D
RGBrgb(40, 25, 109)
HSLhsl(251, 63%, 26%)
HSVhsv(251, 77%, 43%)
CMYKcmyk(63.3%, 77.1%, 0%, 57.3%)
CIE-LABlab(16.75, 32.50, -46.11)
CIE-LCHlch(16.75, 56.41, 305.18°)
OKLaboklab(29.66% 0.0292 -0.1329)
OKLCHoklch(29.66% 0.136 282.4)
XYZxyz(3.9822, 2.2502, 14.6895)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28196D #5E6D19
analogous
#19346D #28196D #52196D
triadic
#28196D #6D2819 #196D28
tetradic
#28196D #6D1934 #5E6D19 #196D52
square
#28196D #6D1934 #5E6D19 #196D52
split-complementary
#28196D #6D5219 #346D19
monochromatic
#090619 #160E3B #28196D #3A249F #4D31D0

Accessibility & contrast

On white

14.48
#28196D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#28196D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28196D
14.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28196D#FFFFFF#000000##FFFFFF
##28196D1.0014.481.4514.48
#FFFFFF14.481.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6F
Deuteranopia (green-blind)
#00266B
Tritanopia (blue-blind)
#003041
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #28196d;
/* rgb */ color: rgb(40, 25, 109);
/* oklch */ color: oklch(29.7% 0.136 282.4);
Tailwind
colors: {
  custom: {
    50: '#6c5898',
    500: '#28196d',
    950: '#000000',
  },
}
SCSS
$custom: #28196d;
$custom-light: #6c5898;
$custom-dark: #000000;
JSON
{
  "hex": "#28196d",
  "rgb": {
    "r": 40,
    "g": 25,
    "b": 109
  },
  "hsl": {
    "h": 250.714,
    "s": 62.687,
    "l": 26.275
  },
  "oklch": {
    "l": 0.29657,
    "c": 0.1361,
    "h": 282.4
  },
  "luminance": 0.02251
}

Semantic roles & 50–950 ramp

primary
#28196D
secondary
#91A23F
accent
#E642C9
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #28196D

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

Preview Lab → · Contrast checker → · Palette generator →

#28196D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva