#45287D#45287D

#45287D is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.4% C 0.137 H 294.3°. Best body text is #FFFFFF at 11.34:1 contrast (WCAG AA passes).

Color values

HEX#45287D
RGBrgb(69, 40, 125)
HSLhsl(260, 52%, 32%)
HSVhsv(260, 68%, 49%)
CMYKcmyk(44.8%, 68%, 0%, 51%)
CIE-LABlab(24.52, 34.05, -43.55)
CIE-LCHlch(24.52, 55.28, 308.02°)
OKLaboklab(36.41% 0.0561 -0.1244)
OKLCHoklch(36.41% 0.137 294.3)
XYZxyz(6.9137, 4.2633, 19.8567)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45287D #607D28
analogous
#28357D #45287D #70287D
triadic
#45287D #7D4528 #287D45
tetradic
#45287D #7D2835 #607D28 #287D70
square
#45287D #7D2835 #607D28 #287D70
split-complementary
#45287D #7D7028 #357D28
monochromatic
#120A20 #2B194F #45287D #5F37AB #7D56C9

Accessibility & contrast

On white

11.34
#45287D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#45287D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45287D
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45287D#FFFFFF#000000##FFFFFF
##45287D1.0011.341.8511.34
#FFFFFF11.341.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B80
Deuteranopia (green-blind)
#00397B
Tritanopia (blue-blind)
#363C4F
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #45287d;
/* rgb */ color: rgb(69, 40, 125);
/* oklch */ color: oklch(36.4% 0.137 294.3);
Tailwind
colors: {
  custom: {
    50: '#7e64a3',
    500: '#45287d',
    950: '#000000',
  },
}
SCSS
$custom: #45287d;
$custom-light: #7e64a3;
$custom-dark: #000000;
JSON
{
  "hex": "#45287d",
  "rgb": {
    "r": 69,
    "g": 40,
    "b": 125
  },
  "hsl": {
    "h": 260.471,
    "s": 51.515,
    "l": 32.353
  },
  "oklch": {
    "l": 0.36411,
    "c": 0.1365,
    "h": 294.3
  },
  "luminance": 0.04263
}

Semantic roles & 50–950 ramp

primary
#45287D
secondary
#8FAE53
accent
#DB4DAA
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A050F
muted
#7C7A7F

Preview Lab

Preview with #45287D

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

Preview Lab → · Contrast checker → · Palette generator →

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