#45299F#45299F

#45299F is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.6% C 0.178 H 285.9°. Best body text is #FFFFFF at 10.14:1 contrast (WCAG AA passes).

Color values

HEX#45299F
RGBrgb(69, 41, 159)
HSLhsl(254, 59%, 39%)
HSVhsv(254, 74%, 62%)
CMYKcmyk(56.6%, 74.2%, 0%, 37.6%)
CIE-LABlab(27.72, 43.62, -59.41)
CIE-LCHlch(27.72, 73.70, 306.29°)
OKLaboklab(39.62% 0.0487 -0.171)
OKLCHoklch(39.62% 0.178 285.9)
XYZxyz(9.5033, 5.3537, 33.3268)
Luminance0.0535 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45299F #839F29
analogous
#29489F #45299F #80299F
triadic
#45299F #9F4529 #299F45
tetradic
#45299F #9F2948 #839F29 #299F80
square
#45299F #9F2948 #839F29 #299F80
split-complementary
#45299F #9F8029 #489F29
monochromatic
#1B103E #301C6E #45299F #5C39CC #846AD9

Accessibility & contrast

On white

10.14
#45299F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#45299F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45299F
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45299F#FFFFFF#000000##FFFFFF
##45299F1.0010.142.0710.14
#FFFFFF10.141.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A2
Deuteranopia (green-blind)
#003E9D
Tritanopia (blue-blind)
#1B4962
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #45299f;
/* rgb */ color: rgb(69, 41, 159);
/* oklch */ color: oklch(39.6% 0.178 285.9);
Tailwind
colors: {
  custom: {
    50: '#8366bc',
    500: '#45299f',
    950: '#000000',
  },
}
SCSS
$custom: #45299f;
$custom-light: #8366bc;
$custom-dark: #000000;
JSON
{
  "hex": "#45299f",
  "rgb": {
    "r": 69,
    "g": 41,
    "b": 159
  },
  "hsl": {
    "h": 254.237,
    "s": 59,
    "l": 39.216
  },
  "oklch": {
    "l": 0.39617,
    "c": 0.17777,
    "h": 285.9
  },
  "luminance": 0.05354
}

Semantic roles & 50–950 ramp

primary
#45299F
secondary
#AABF65
accent
#E246BD
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #45299F

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

Preview Lab → · Contrast checker → · Palette generator →

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