#45249C#45249C

#45249C is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.7% C 0.179 H 287.3°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#45249C
RGBrgb(69, 36, 156)
HSLhsl(257, 63%, 38%)
HSVhsv(257, 77%, 61%)
CMYKcmyk(55.8%, 76.9%, 0%, 38.8%)
CIE-LABlab(26.53, 45.31, -59.54)
CIE-LCHlch(26.53, 74.82, 307.27°)
OKLaboklab(38.69% 0.0534 -0.1713)
OKLCHoklch(38.69% 0.179 287.3)
XYZxyz(9.0841, 4.9268, 31.9183)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45249C #7B9C24
analogous
#243F9C #45249C #81249C
triadic
#45249C #9C4524 #249C45
tetradic
#45249C #9C243F #7B9C24 #249C81
square
#45249C #9C243F #7B9C24 #249C81
split-complementary
#45249C #9C8124 #3F9C24
monochromatic
#190D39 #2F196A #45249C #5B2FCE #8260DA

Accessibility & contrast

On white

10.58
#45249C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#45249C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45249C
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45249C#FFFFFF#000000##FFFFFF
##45249C1.0010.581.9910.58
#FFFFFF10.581.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429F
Deuteranopia (green-blind)
#003B9A
Tritanopia (blue-blind)
#1F465F
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #45249c;
/* rgb */ color: rgb(69, 36, 156);
/* oklch */ color: oklch(38.7% 0.179 287.3);
Tailwind
colors: {
  custom: {
    50: '#8363ba',
    500: '#45249c',
    950: '#000000',
  },
}
SCSS
$custom: #45249c;
$custom-light: #8363ba;
$custom-dark: #000000;
JSON
{
  "hex": "#45249c",
  "rgb": {
    "r": 69,
    "g": 36,
    "b": 156
  },
  "hsl": {
    "h": 256.5,
    "s": 62.5,
    "l": 37.647
  },
  "oklch": {
    "l": 0.38689,
    "c": 0.17945,
    "h": 287.3
  },
  "luminance": 0.04927
}

Semantic roles & 50–950 ramp

primary
#45249C
secondary
#A4BF5C
accent
#E642B9
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #45249C

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

Preview Lab → · Contrast checker → · Palette generator →

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