#28145A#28145A

#28145A is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.0% C 0.117 H 289.2°. Best body text is #FFFFFF at 15.70:1 contrast (WCAG AA passes).

Color values

HEX#28145A
RGBrgb(40, 20, 90)
HSLhsl(257, 64%, 22%)
HSVhsv(257, 78%, 35%)
CMYKcmyk(55.6%, 77.8%, 0%, 64.7%)
CIE-LABlab(13.77, 29.19, -38.43)
CIE-LCHlch(13.77, 48.26, 307.22°)
OKLaboklab(26.95% 0.0384 -0.1104)
OKLCHoklch(26.95% 0.117 289.2)
XYZxyz(2.9702, 1.6895, 9.8405)
Luminance0.0169 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28145A #465A14
analogous
#14235A #28145A #4B145A
triadic
#28145A #5A2814 #145A28
tetradic
#28145A #5A1423 #465A14 #145A4B
square
#28145A #5A1423 #465A14 #145A4B
split-complementary
#28145A #5A4B14 #235A14
monochromatic
#0B0619 #120928 #28145A #3E1F8C #552ABE

Accessibility & contrast

On white

15.70
#28145A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#28145A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28145A
15.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28145A#FFFFFF#000000##FFFFFF
##28145A1.0015.701.3415.70
#FFFFFF15.701.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255C
Deuteranopia (green-blind)
#002159
Tritanopia (blue-blind)
#162735
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #28145a;
/* rgb */ color: rgb(40, 20, 90);
/* oklch */ color: oklch(27.0% 0.117 289.2);
Tailwind
colors: {
  custom: {
    50: '#685389',
    500: '#28145a',
    950: '#000000',
  },
}
SCSS
$custom: #28145a;
$custom-light: #685389;
$custom-dark: #000000;
JSON
{
  "hex": "#28145a",
  "rgb": {
    "r": 40,
    "g": 20,
    "b": 90
  },
  "hsl": {
    "h": 257.143,
    "s": 63.636,
    "l": 21.569
  },
  "oklch": {
    "l": 0.26952,
    "c": 0.11689,
    "h": 289.2
  },
  "luminance": 0.0169
}

Semantic roles & 50–950 ramp

primary
#28145A
secondary
#789238
accent
#E741B7
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #28145A

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

Preview Lab → · Contrast checker → · Palette generator →

#28145A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva