#45288F#45288F

#45288F is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.0% C 0.159 H 289.5°. Best body text is #FFFFFF at 10.75:1 contrast (WCAG AA passes).

Color values

HEX#45288F
RGBrgb(69, 40, 143)
HSLhsl(257, 56%, 36%)
HSVhsv(257, 72%, 56%)
CMYKcmyk(51.7%, 72%, 0%, 43.9%)
CIE-LABlab(26.06, 39.38, -52.31)
CIE-LCHlch(26.06, 65.48, 306.97°)
OKLaboklab(37.99% 0.0531 -0.1502)
OKLCHoklch(37.99% 0.159 289.5)
XYZxyz(8.1695, 4.7656, 26.4707)
Luminance0.0477 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45288F #728F28
analogous
#283E8F #45288F #78288F
triadic
#45288F #8F4528 #288F45
tetradic
#45288F #8F283E #728F28 #288F78
square
#45288F #8F283E #728F28 #288F78
split-complementary
#45288F #8F7828 #3E8F28
monochromatic
#170D2F #2E1B5F #45288F #5C35BF #805FD2

Accessibility & contrast

On white

10.75
#45288F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#45288F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45288F
10.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45288F#FFFFFF#000000##FFFFFF
##45288F1.0010.751.9510.75
#FFFFFF10.751.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004092
Deuteranopia (green-blind)
#003B8D
Tritanopia (blue-blind)
#2B4358
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #45288f;
/* rgb */ color: rgb(69, 40, 143);
/* oklch */ color: oklch(38.0% 0.159 289.5);
Tailwind
colors: {
  custom: {
    50: '#8064b1',
    500: '#45288f',
    950: '#000000',
  },
}
SCSS
$custom: #45288f;
$custom-light: #8064b1;
$custom-dark: #000000;
JSON
{
  "hex": "#45288f",
  "rgb": {
    "r": 69,
    "g": 40,
    "b": 143
  },
  "hsl": {
    "h": 256.893,
    "s": 56.284,
    "l": 35.882
  },
  "oklch": {
    "l": 0.37986,
    "c": 0.15929,
    "h": 289.5
  },
  "luminance": 0.04766
}

Semantic roles & 50–950 ramp

primary
#45288F
secondary
#9EB85B
accent
#E048B5
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0611
muted
#7C7A80

Preview Lab

Preview with #45288F

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

Preview Lab → · Contrast checker → · Palette generator →

#45288F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva