#28147E#28147E

#28147E is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.9% C 0.162 H 279.7°. Best body text is #FFFFFF at 14.08:1 contrast (WCAG AA passes).

Color values

HEX#28147E
RGBrgb(40, 20, 126)
HSLhsl(251, 73%, 29%)
HSVhsv(251, 84%, 49%)
CMYKcmyk(68.3%, 84.1%, 0%, 50.6%)
CIE-LABlab(17.72, 40.60, -55.45)
CIE-LCHlch(17.72, 68.72, 306.21°)
OKLaboklab(30.9% 0.0274 -0.1601)
OKLCHoklch(30.9% 0.162 279.7)
XYZxyz(4.8899, 2.4574, 19.9513)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28147E #6A7E14
analogous
#14357E #28147E #5D147E
triadic
#28147E #7E2814 #147E28
tetradic
#28147E #7E1435 #6A7E14 #147E5D
square
#28147E #7E1435 #6A7E14 #147E5D
split-complementary
#28147E #7E5D14 #357E14
monochromatic
#08041A #170C49 #28147E #391CB3 #502EDE

Accessibility & contrast

On white

14.08
#28147E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#28147E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28147E
14.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28147E#FFFFFF#000000##FFFFFF
##28147E1.0014.081.4914.08
#FFFFFF14.081.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F81
Deuteranopia (green-blind)
#00277C
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #28147e;
/* rgb */ color: rgb(40, 20, 126);
/* oklch */ color: oklch(30.9% 0.162 279.7);
Tailwind
colors: {
  custom: {
    50: '#7056a5',
    500: '#28147e',
    950: '#000000',
  },
}
SCSS
$custom: #28147e;
$custom-light: #7056a5;
$custom-dark: #000000;
JSON
{
  "hex": "#28147e",
  "rgb": {
    "r": 40,
    "g": 20,
    "b": 126
  },
  "hsl": {
    "h": 251.321,
    "s": 72.603,
    "l": 28.627
  },
  "oklch": {
    "l": 0.30904,
    "c": 0.16242,
    "h": 279.7
  },
  "luminance": 0.02458
}

Semantic roles & 50–950 ramp

primary
#28147E
secondary
#9DB33A
accent
#EF38CD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #28147E

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

Preview Lab → · Contrast checker → · Palette generator →

#28147E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva