#45288D#45288D

#45288D is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.8% C 0.157 H 290.0°. Best body text is #FFFFFF at 10.82:1 contrast (WCAG AA passes).

Color values

HEX#45288D
RGBrgb(69, 40, 141)
HSLhsl(257, 56%, 35%)
HSVhsv(257, 72%, 55%)
CMYKcmyk(51.1%, 71.6%, 0%, 44.7%)
CIE-LABlab(25.88, 38.79, -51.36)
CIE-LCHlch(25.88, 64.36, 307.06°)
OKLaboklab(37.81% 0.0535 -0.1474)
OKLCHoklch(37.81% 0.157 290)
XYZxyz(8.0194, 4.7055, 25.6799)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45288D #708D28
analogous
#283D8D #45288D #77288D
triadic
#45288D #8D4528 #288D45
tetradic
#45288D #8D283D #708D28 #288D77
square
#45288D #8D283D #708D28 #288D77
split-complementary
#45288D #8D7728 #3D8D28
monochromatic
#160D2E #2E1A5D #45288D #5C36BD #7F5ED1

Accessibility & contrast

On white

10.82
#45288D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#45288D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45288D
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45288D#FFFFFF#000000##FFFFFF
##45288D1.0010.821.9410.82
#FFFFFF10.821.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F90
Deuteranopia (green-blind)
#003B8B
Tritanopia (blue-blind)
#2C4257
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #45288d;
/* rgb */ color: rgb(69, 40, 141);
/* oklch */ color: oklch(37.8% 0.157 290.0);
Tailwind
colors: {
  custom: {
    50: '#8064af',
    500: '#45288d',
    950: '#000000',
  },
}
SCSS
$custom: #45288d;
$custom-light: #8064af;
$custom-dark: #000000;
JSON
{
  "hex": "#45288d",
  "rgb": {
    "r": 69,
    "g": 40,
    "b": 141
  },
  "hsl": {
    "h": 257.228,
    "s": 55.801,
    "l": 35.49
  },
  "oklch": {
    "l": 0.37805,
    "c": 0.15681,
    "h": 290
  },
  "luminance": 0.04706
}

Semantic roles & 50–950 ramp

primary
#45288D
secondary
#9CB75A
accent
#DF49B4
background
#F8F6FA
surface
#EFEBF5
border
#CAC6CF
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #45288D

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

Preview Lab → · Contrast checker → · Palette generator →

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