#28146F#28146F

#28146F is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.2% C 0.144 H 283.0°. Best body text is #FFFFFF at 14.79:1 contrast (WCAG AA passes).

Color values

HEX#28146F
RGBrgb(40, 20, 111)
HSLhsl(253, 69%, 26%)
HSVhsv(253, 82%, 44%)
CMYKcmyk(64%, 82%, 0%, 56.5%)
CIE-LABlab(16.00, 35.91, -48.65)
CIE-LCHlch(16.00, 60.47, 306.43°)
OKLaboklab(29.2% 0.0323 -0.1403)
OKLCHoklch(29.2% 0.144 283)
XYZxyz(3.9936, 2.0988, 15.2305)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28146F #5B6F14
analogous
#142D6F #28146F #55146F
triadic
#28146F #6F2814 #146F28
tetradic
#28146F #6F142D #5B6F14 #146F55
square
#28146F #6F142D #5B6F14 #146F55
split-complementary
#28146F #6F5514 #2D6F14
monochromatic
#09051A #150B3B #28146F #3B1DA3 #4D27D7

Accessibility & contrast

On white

14.79
#28146F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#28146F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28146F
14.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28146F#FFFFFF#000000##FFFFFF
##28146F1.0014.791.4214.79
#FFFFFF14.791.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B72
Deuteranopia (green-blind)
#00256D
Tritanopia (blue-blind)
#002F41
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #28146f;
/* rgb */ color: rgb(40, 20, 111);
/* oklch */ color: oklch(29.2% 0.144 283.0);
Tailwind
colors: {
  custom: {
    50: '#6c5599',
    500: '#28146f',
    950: '#000000',
  },
}
SCSS
$custom: #28146f;
$custom-light: #6c5599;
$custom-dark: #000000;
JSON
{
  "hex": "#28146f",
  "rgb": {
    "r": 40,
    "g": 20,
    "b": 111
  },
  "hsl": {
    "h": 253.187,
    "s": 69.466,
    "l": 25.686
  },
  "oklch": {
    "l": 0.29195,
    "c": 0.14396,
    "h": 283
  },
  "luminance": 0.02099
}

Semantic roles & 50–950 ramp

primary
#28146F
secondary
#8EA639
accent
#EC3CC5
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #28146F

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

Preview Lab → · Contrast checker → · Palette generator →

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