#45299D#45299D

#45299D is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.4% C 0.175 H 286.3°. Best body text is #FFFFFF at 10.21:1 contrast (WCAG AA passes).

Color values

HEX#45299D
RGBrgb(69, 41, 157)
HSLhsl(254, 59%, 39%)
HSVhsv(254, 74%, 62%)
CMYKcmyk(56.1%, 73.9%, 0%, 38.4%)
CIE-LABlab(27.53, 43.02, -58.50)
CIE-LCHlch(27.53, 72.61, 306.33°)
OKLaboklab(39.43% 0.0492 -0.1683)
OKLCHoklch(39.43% 0.175 286.3)
XYZxyz(9.3312, 5.2849, 32.4201)
Luminance0.0529 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45299D #819D29
analogous
#29479D #45299D #7F299D
triadic
#45299D #9D4529 #299D45
tetradic
#45299D #9D2947 #819D29 #299D7F
square
#45299D #9D2947 #819D29 #299D7F
split-complementary
#45299D #9D7F29 #479D29
monochromatic
#1A103C #301C6C #45299D #5C38CB #8369D8

Accessibility & contrast

On white

10.21
#45299D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#45299D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45299D
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45299D#FFFFFF#000000##FFFFFF
##45299D1.0010.212.0610.21
#FFFFFF10.211.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A0
Deuteranopia (green-blind)
#003E9B
Tritanopia (blue-blind)
#1E4960
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #45299d;
/* rgb */ color: rgb(69, 41, 157);
/* oklch */ color: oklch(39.4% 0.175 286.3);
Tailwind
colors: {
  custom: {
    50: '#8366bb',
    500: '#45299d',
    950: '#000000',
  },
}
SCSS
$custom: #45299d;
$custom-light: #8366bb;
$custom-dark: #000000;
JSON
{
  "hex": "#45299d",
  "rgb": {
    "r": 69,
    "g": 41,
    "b": 157
  },
  "hsl": {
    "h": 254.483,
    "s": 58.586,
    "l": 38.824
  },
  "oklch": {
    "l": 0.39427,
    "c": 0.17535,
    "h": 286.3
  },
  "luminance": 0.05285
}

Semantic roles & 50–950 ramp

primary
#45299D
secondary
#A8BE64
accent
#E246BC
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #45299D

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

Preview Lab → · Contrast checker → · Palette generator →

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