#28146B#28146B

#28146B is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.8% C 0.139 H 284.0°. Best body text is #FFFFFF at 14.97:1 contrast (WCAG AA passes).

Color values

HEX#28146B
RGBrgb(40, 20, 107)
HSLhsl(254, 69%, 25%)
HSVhsv(254, 81%, 42%)
CMYKcmyk(62.6%, 81.3%, 0%, 58%)
CIE-LABlab(15.55, 34.64, -46.77)
CIE-LCHlch(15.55, 58.20, 306.52°)
OKLaboklab(28.75% 0.0335 -0.1348)
OKLCHoklch(28.75% 0.139 284)
XYZxyz(3.7783, 2.0127, 14.0965)
Luminance0.0201 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28146B #576B14
analogous
#142C6B #28146B #53146B
triadic
#28146B #6B2814 #146B28
tetradic
#28146B #6B142C #576B14 #146B53
square
#28146B #6B142C #576B14 #146B53
split-complementary
#28146B #6B5314 #2C6B14
monochromatic
#0A051A #150A37 #28146B #3B1E9F #4F27D2

Accessibility & contrast

On white

14.97
#28146B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#28146B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28146B
14.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28146B#FFFFFF#000000##FFFFFF
##28146B1.0014.971.4014.97
#FFFFFF14.971.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296D
Deuteranopia (green-blind)
#002469
Tritanopia (blue-blind)
#002D3F
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #28146b;
/* rgb */ color: rgb(40, 20, 107);
/* oklch */ color: oklch(28.8% 0.139 284.0);
Tailwind
colors: {
  custom: {
    50: '#6c5596',
    500: '#28146b',
    950: '#000000',
  },
}
SCSS
$custom: #28146b;
$custom-light: #6c5596;
$custom-dark: #000000;
JSON
{
  "hex": "#28146b",
  "rgb": {
    "r": 40,
    "g": 20,
    "b": 107
  },
  "hsl": {
    "h": 253.793,
    "s": 68.504,
    "l": 24.902
  },
  "oklch": {
    "l": 0.28752,
    "c": 0.13892,
    "h": 284
  },
  "luminance": 0.02013
}

Semantic roles & 50–950 ramp

primary
#28146B
secondary
#8AA239
accent
#EB3CC3
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #28146B

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

Preview Lab → · Contrast checker → · Palette generator →

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