#45188D#45188D

#45188D is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.9% C 0.174 H 292.6°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#45188D
RGBrgb(69, 24, 141)
HSLhsl(263, 71%, 32%)
HSVhsv(263, 83%, 55%)
CMYKcmyk(51.1%, 83%, 0%, 44.7%)
CIE-LABlab(23.14, 46.58, -55.85)
CIE-LCHlch(23.14, 72.73, 309.83°)
OKLaboklab(35.88% 0.0669 -0.1604)
OKLCHoklch(35.88% 0.174 292.6)
XYZxyz(7.5872, 3.8413, 25.5358)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45188D #608D18
analogous
#18258D #45188D #80188D
triadic
#45188D #8D4518 #188D45
tetradic
#45188D #8D1825 #608D18 #188D80
square
#45188D #8D1825 #608D18 #188D80
split-complementary
#45188D #8D8018 #258D18
monochromatic
#120624 #2B0F59 #45188D #5F21C1 #7D41DF

Accessibility & contrast

On white

11.88
#45188D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#45188D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45188D
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45188D#FFFFFF#000000##FFFFFF
##45188D1.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003990
Deuteranopia (green-blind)
#00358B
Tritanopia (blue-blind)
#2D3B53
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #45188d;
/* rgb */ color: rgb(69, 24, 141);
/* oklch */ color: oklch(35.9% 0.174 292.6);
Tailwind
colors: {
  custom: {
    50: '#815caf',
    500: '#45188d',
    950: '#000000',
  },
}
SCSS
$custom: #45188d;
$custom-light: #815caf;
$custom-dark: #000000;
JSON
{
  "hex": "#45188d",
  "rgb": {
    "r": 69,
    "g": 24,
    "b": 141
  },
  "hsl": {
    "h": 263.077,
    "s": 70.909,
    "l": 32.353
  },
  "oklch": {
    "l": 0.35881,
    "c": 0.17382,
    "h": 292.6
  },
  "luminance": 0.03842
}

Semantic roles & 50–950 ramp

primary
#45188D
secondary
#8FBF42
accent
#EE3AA9
background
#F8F5FA
surface
#EFE9F5
border
#CAC5CF
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #45188D

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

Preview Lab → · Contrast checker → · Palette generator →

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