#28196B#28196B

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

Color values

HEX#28196B
RGBrgb(40, 25, 107)
HSLhsl(251, 62%, 26%)
HSVhsv(251, 77%, 42%)
CMYKcmyk(62.6%, 76.6%, 0%, 58%)
CIE-LABlab(16.54, 31.83, -45.15)
CIE-LCHlch(16.54, 55.24, 305.19°)
OKLaboklab(29.45% 0.0297 -0.1301)
OKLCHoklch(29.45% 0.133 282.9)
XYZxyz(3.8757, 2.2077, 14.1290)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28196B #5C6B19
analogous
#19336B #28196B #51196B
triadic
#28196B #6B2819 #196B28
tetradic
#28196B #6B1933 #5C6B19 #196B51
square
#28196B #6B1933 #5C6B19 #196B51
split-complementary
#28196B #6B5119 #336B19
monochromatic
#090619 #150D39 #28196B #3B259D #4D30CE

Accessibility & contrast

On white

14.57
#28196B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#28196B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28196B
14.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28196B#FFFFFF#000000##FFFFFF
##28196B1.0014.571.4414.57
#FFFFFF14.571.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6D
Deuteranopia (green-blind)
#002669
Tritanopia (blue-blind)
#003040
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #28196b;
/* rgb */ color: rgb(40, 25, 107);
/* oklch */ color: oklch(29.4% 0.133 282.9);
Tailwind
colors: {
  custom: {
    50: '#6b5796',
    500: '#28196b',
    950: '#000000',
  },
}
SCSS
$custom: #28196b;
$custom-light: #6b5796;
$custom-dark: #000000;
JSON
{
  "hex": "#28196b",
  "rgb": {
    "r": 40,
    "g": 25,
    "b": 107
  },
  "hsl": {
    "h": 250.976,
    "s": 62.121,
    "l": 25.882
  },
  "oklch": {
    "l": 0.29447,
    "c": 0.13346,
    "h": 282.9
  },
  "luminance": 0.02208
}

Semantic roles & 50–950 ramp

primary
#28196B
secondary
#8FA13F
accent
#E543C7
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #28196B

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

Preview Lab → · Contrast checker → · Palette generator →

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