#45287C#45287C

#45287C is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.3% C 0.135 H 294.6°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#45287C
RGBrgb(69, 40, 124)
HSLhsl(261, 51%, 32%)
HSVhsv(261, 68%, 49%)
CMYKcmyk(44.4%, 67.7%, 0%, 51.4%)
CIE-LABlab(24.44, 33.75, -43.05)
CIE-LCHlch(24.44, 54.70, 308.10°)
OKLaboklab(36.33% 0.0563 -0.1229)
OKLCHoklch(36.33% 0.135 294.6)
XYZxyz(6.8502, 4.2379, 19.5219)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45287C #5F7C28
analogous
#28357C #45287C #6F287C
triadic
#45287C #7C4528 #287C45
tetradic
#45287C #7C2835 #5F7C28 #287C6F
square
#45287C #7C2835 #5F7C28 #287C6F
split-complementary
#45287C #7C6F28 #357C28
monochromatic
#120A1F #2B194E #45287C #5F37AA #7D56C8

Accessibility & contrast

On white

11.37
#45287C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #45287C
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45287C#FFFFFF#000000##FFFFFF
##45287C1.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7F
Deuteranopia (green-blind)
#00397A
Tritanopia (blue-blind)
#363C4E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #45287c;
/* rgb */ color: rgb(69, 40, 124);
/* oklch */ color: oklch(36.3% 0.135 294.6);
Tailwind
colors: {
  custom: {
    50: '#7e64a3',
    500: '#45287c',
    950: '#000000',
  },
}
SCSS
$custom: #45287c;
$custom-light: #7e64a3;
$custom-dark: #000000;
JSON
{
  "hex": "#45287c",
  "rgb": {
    "r": 69,
    "g": 40,
    "b": 124
  },
  "hsl": {
    "h": 260.714,
    "s": 51.22,
    "l": 32.157
  },
  "oklch": {
    "l": 0.36327,
    "c": 0.13521,
    "h": 294.6
  },
  "luminance": 0.04238
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #45287C

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

Preview Lab → · Contrast checker → · Palette generator →

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