#45289E#45289E

#45289E is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.4% C 0.178 H 286.3°. Best body text is #FFFFFF at 10.24:1 contrast (WCAG AA passes).

Color values

HEX#45289E
RGBrgb(69, 40, 158)
HSLhsl(255, 60%, 39%)
HSVhsv(255, 75%, 62%)
CMYKcmyk(56.3%, 74.7%, 0%, 38%)
CIE-LABlab(27.44, 43.85, -59.26)
CIE-LCHlch(27.44, 73.72, 306.50°)
OKLaboklab(39.39% 0.0498 -0.1705)
OKLCHoklch(39.39% 0.178 286.3)
XYZxyz(9.3827, 5.2509, 32.8602)
Luminance0.0525 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45289E #819E28
analogous
#28469E #45289E #80289E
triadic
#45289E #9E4528 #289E45
tetradic
#45289E #9E2846 #819E28 #289E80
square
#45289E #9E2846 #819E28 #289E80
split-complementary
#45289E #9E8028 #469E28
monochromatic
#1A0F3C #301C6D #45289E #5C37CC #8368D9

Accessibility & contrast

On white

10.24
#45289E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#45289E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45289E
10.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45289E#FFFFFF#000000##FFFFFF
##45289E1.0010.242.0510.24
#FFFFFF10.241.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A1
Deuteranopia (green-blind)
#003D9C
Tritanopia (blue-blind)
#1D4861
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #45289e;
/* rgb */ color: rgb(69, 40, 158);
/* oklch */ color: oklch(39.4% 0.178 286.3);
Tailwind
colors: {
  custom: {
    50: '#8365bc',
    500: '#45289e',
    950: '#000000',
  },
}
SCSS
$custom: #45289e;
$custom-light: #8365bc;
$custom-dark: #000000;
JSON
{
  "hex": "#45289e",
  "rgb": {
    "r": 69,
    "g": 40,
    "b": 158
  },
  "hsl": {
    "h": 254.746,
    "s": 59.596,
    "l": 38.824
  },
  "oklch": {
    "l": 0.39389,
    "c": 0.17765,
    "h": 286.3
  },
  "luminance": 0.05251
}

Semantic roles & 50–950 ramp

primary
#45289E
secondary
#A8BF63
accent
#E345BC
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #45289E

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

Preview Lab → · Contrast checker → · Palette generator →

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