#45248E#45248E

#45248E is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.3% C 0.163 H 290.5°. Best body text is #FFFFFF at 11.08:1 contrast (WCAG AA passes).

Color values

HEX#45248E
RGBrgb(69, 36, 142)
HSLhsl(259, 60%, 35%)
HSVhsv(259, 75%, 56%)
CMYKcmyk(51.4%, 74.6%, 0%, 44.3%)
CIE-LABlab(25.20, 41.24, -53.10)
CIE-LCHlch(25.20, 67.23, 307.83°)
OKLaboklab(37.35% 0.057 -0.1525)
OKLCHoklch(37.35% 0.163 290.5)
XYZxyz(7.9662, 4.4796, 26.0309)
Luminance0.0448 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45248E #6D8E24
analogous
#24388E #45248E #7A248E
triadic
#45248E #8E4524 #248E45
tetradic
#45248E #8E2438 #6D8E24 #248E7A
square
#45248E #8E2438 #6D8E24 #248E7A
split-complementary
#45248E #8E7A24 #388E24
monochromatic
#160B2C #2D185D #45248E #5D30BF #7F58D5

Accessibility & contrast

On white

11.08
#45248E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#45248E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45248E
11.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45248E#FFFFFF#000000##FFFFFF
##45248E1.0011.081.9011.08
#FFFFFF11.081.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E91
Deuteranopia (green-blind)
#00398C
Tritanopia (blue-blind)
#2C4057
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #45248e;
/* rgb */ color: rgb(69, 36, 142);
/* oklch */ color: oklch(37.3% 0.163 290.5);
Tailwind
colors: {
  custom: {
    50: '#8162b0',
    500: '#45248e',
    950: '#000000',
  },
}
SCSS
$custom: #45248e;
$custom-light: #8162b0;
$custom-dark: #000000;
JSON
{
  "hex": "#45248e",
  "rgb": {
    "r": 69,
    "g": 36,
    "b": 142
  },
  "hsl": {
    "h": 258.679,
    "s": 59.551,
    "l": 34.902
  },
  "oklch": {
    "l": 0.37349,
    "c": 0.16278,
    "h": 290.5
  },
  "luminance": 0.0448
}

Semantic roles & 50–950 ramp

primary
#45248E
secondary
#9AB955
accent
#E345B2
background
#F8F5FA
surface
#EFEAF5
border
#CAC6CF
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #45248E

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

Preview Lab → · Contrast checker → · Palette generator →

#45248E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva