#45287A#45287A

#45287A is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.2% C 0.133 H 295.2°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#45287A
RGBrgb(69, 40, 122)
HSLhsl(261, 51%, 32%)
HSVhsv(261, 67%, 48%)
CMYKcmyk(43.4%, 67.2%, 0%, 52.2%)
CIE-LABlab(24.28, 33.17, -42.04)
CIE-LCHlch(24.28, 53.55, 308.27°)
OKLaboklab(36.16% 0.0565 -0.12)
OKLCHoklch(36.16% 0.133 295.2)
XYZxyz(6.7250, 4.1878, 18.8626)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45287A #5D7A28
analogous
#28347A #45287A #6E287A
triadic
#45287A #7A4528 #287A45
tetradic
#45287A #7A2834 #5D7A28 #287A6E
square
#45287A #7A2834 #5D7A28 #287A6E
split-complementary
#45287A #7A6E28 #347A28
monochromatic
#110A1E #2B194C #45287A #5F37A8 #7D55C7

Accessibility & contrast

On white

11.43
#45287A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#45287A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45287A
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45287A#FFFFFF#000000##FFFFFF
##45287A1.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7D
Deuteranopia (green-blind)
#003878
Tritanopia (blue-blind)
#373B4D
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #45287a;
/* rgb */ color: rgb(69, 40, 122);
/* oklch */ color: oklch(36.2% 0.133 295.2);
Tailwind
colors: {
  custom: {
    50: '#7d64a1',
    500: '#45287a',
    950: '#000000',
  },
}
SCSS
$custom: #45287a;
$custom-light: #7d64a1;
$custom-dark: #000000;
JSON
{
  "hex": "#45287a",
  "rgb": {
    "r": 69,
    "g": 40,
    "b": 122
  },
  "hsl": {
    "h": 261.22,
    "s": 50.617,
    "l": 31.765
  },
  "oklch": {
    "l": 0.36161,
    "c": 0.13261,
    "h": 295.2
  },
  "luminance": 0.04188
}

Semantic roles & 50–950 ramp

primary
#45287A
secondary
#8CAC52
accent
#DA4EA8
background
#F7F6FA
surface
#EEEBF3
border
#C9C6CD
text
#0A050F
muted
#7C7A7F

Preview Lab

Preview with #45287A

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

Preview Lab → · Contrast checker → · Palette generator →

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