#28147B#28147B

#28147B is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.6% C 0.159 H 280.3°. Best body text is #FFFFFF at 14.23:1 contrast (WCAG AA passes).

Color values

HEX#28147B
RGBrgb(40, 20, 123)
HSLhsl(252, 72%, 28%)
HSVhsv(252, 84%, 48%)
CMYKcmyk(67.5%, 83.7%, 0%, 51.8%)
CIE-LABlab(17.37, 39.67, -54.12)
CIE-LCHlch(17.37, 67.10, 306.24°)
OKLaboklab(30.56% 0.0284 -0.1562)
OKLCHoklch(30.56% 0.159 280.3)
XYZxyz(4.6992, 2.3811, 18.9470)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28147B #677B14
analogous
#14347B #28147B #5B147B
triadic
#28147B #7B2814 #147B28
tetradic
#28147B #7B1434 #677B14 #147B5B
square
#28147B #7B1434 #677B14 #147B5B
split-complementary
#28147B #7B5B14 #347B14
monochromatic
#09041A #170B46 #28147B #391DB0 #4F2DDD

Accessibility & contrast

On white

14.23
#28147B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#28147B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28147B
14.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28147B#FFFFFF#000000##FFFFFF
##28147B1.0014.231.4814.23
#FFFFFF14.231.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7E
Deuteranopia (green-blind)
#002779
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #28147b;
/* rgb */ color: rgb(40, 20, 123);
/* oklch */ color: oklch(30.6% 0.159 280.3);
Tailwind
colors: {
  custom: {
    50: '#6f56a2',
    500: '#28147b',
    950: '#000000',
  },
}
SCSS
$custom: #28147b;
$custom-light: #6f56a2;
$custom-dark: #000000;
JSON
{
  "hex": "#28147b",
  "rgb": {
    "r": 40,
    "g": 20,
    "b": 123
  },
  "hsl": {
    "h": 251.65,
    "s": 72.028,
    "l": 28.039
  },
  "oklch": {
    "l": 0.30556,
    "c": 0.15878,
    "h": 280.3
  },
  "luminance": 0.02381
}

Semantic roles & 50–950 ramp

primary
#28147B
secondary
#9AB13A
accent
#EF39CB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #28147B

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

Preview Lab → · Contrast checker → · Palette generator →

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