#28196F#28196F

#28196F is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.9% C 0.139 H 282.0°. Best body text is #FFFFFF at 14.40:1 contrast (WCAG AA passes).

Color values

HEX#28196F
RGBrgb(40, 25, 111)
HSLhsl(250, 63%, 27%)
HSVhsv(250, 77%, 44%)
CMYKcmyk(64%, 77.5%, 0%, 56.5%)
CIE-LABlab(16.96, 33.16, -47.07)
CIE-LCHlch(16.96, 57.58, 305.17°)
OKLaboklab(29.87% 0.0287 -0.1357)
OKLCHoklch(29.87% 0.139 282)
XYZxyz(4.0910, 2.2938, 15.2630)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28196F #606F19
analogous
#19356F #28196F #53196F
triadic
#28196F #6F2819 #196F28
tetradic
#28196F #6F1935 #606F19 #196F53
square
#28196F #6F1935 #606F19 #196F53
split-complementary
#28196F #6F5319 #356F19
monochromatic
#090619 #160E3D #28196F #3A24A1 #4D32D1

Accessibility & contrast

On white

14.40
#28196F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#28196F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28196F
14.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28196F#FFFFFF#000000##FFFFFF
##28196F1.0014.401.4614.40
#FFFFFF14.401.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D71
Deuteranopia (green-blind)
#00276D
Tritanopia (blue-blind)
#003142
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #28196f;
/* rgb */ color: rgb(40, 25, 111);
/* oklch */ color: oklch(29.9% 0.139 282.0);
Tailwind
colors: {
  custom: {
    50: '#6c5899',
    500: '#28196f',
    950: '#000000',
  },
}
SCSS
$custom: #28196f;
$custom-light: #6c5899;
$custom-dark: #000000;
JSON
{
  "hex": "#28196f",
  "rgb": {
    "r": 40,
    "g": 25,
    "b": 111
  },
  "hsl": {
    "h": 250.465,
    "s": 63.235,
    "l": 26.667
  },
  "oklch": {
    "l": 0.29869,
    "c": 0.13873,
    "h": 282
  },
  "luminance": 0.02294
}

Semantic roles & 50–950 ramp

primary
#28196F
secondary
#93A43F
accent
#E642CA
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #28196F

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

Preview Lab → · Contrast checker → · Palette generator →

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