#45248C#45248C

#45248C is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.2% C 0.160 H 291.0°. Best body text is #FFFFFF at 11.15:1 contrast (WCAG AA passes).

Color values

HEX#45248C
RGBrgb(69, 36, 140)
HSLhsl(259, 59%, 35%)
HSVhsv(259, 74%, 55%)
CMYKcmyk(50.7%, 74.3%, 0%, 45.1%)
CIE-LABlab(25.01, 40.66, -52.16)
CIE-LCHlch(25.01, 66.13, 307.94°)
OKLaboklab(37.16% 0.0575 -0.1497)
OKLCHoklch(37.16% 0.16 291)
XYZxyz(7.8174, 4.4201, 25.2471)
Luminance0.0442 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45248C #6B8C24
analogous
#24378C #45248C #79248C
triadic
#45248C #8C4524 #248C45
tetradic
#45248C #8C2437 #6B8C24 #248C79
square
#45248C #8C2437 #6B8C24 #248C79
split-complementary
#45248C #8C7924 #378C24
monochromatic
#150B2B #2D175B #45248C #5D31BD #7E57D4

Accessibility & contrast

On white

11.15
#45248C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#45248C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45248C
11.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45248C#FFFFFF#000000##FFFFFF
##45248C1.0011.151.8811.15
#FFFFFF11.151.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8F
Deuteranopia (green-blind)
#00398A
Tritanopia (blue-blind)
#2D3F56
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #45248c;
/* rgb */ color: rgb(69, 36, 140);
/* oklch */ color: oklch(37.2% 0.160 291.0);
Tailwind
colors: {
  custom: {
    50: '#8062af',
    500: '#45248c',
    950: '#000000',
  },
}
SCSS
$custom: #45248c;
$custom-light: #8062af;
$custom-dark: #000000;
JSON
{
  "hex": "#45248c",
  "rgb": {
    "r": 69,
    "g": 36,
    "b": 140
  },
  "hsl": {
    "h": 259.038,
    "s": 59.091,
    "l": 34.51
  },
  "oklch": {
    "l": 0.37163,
    "c": 0.16036,
    "h": 291
  },
  "luminance": 0.0442
}

Semantic roles & 50–950 ramp

primary
#45248C
secondary
#98B854
accent
#E246B1
background
#F8F5FA
surface
#EFEAF5
border
#CAC6CF
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #45248C

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

Preview Lab → · Contrast checker → · Palette generator →

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