#45186B#45186B

#45186B is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.7% C 0.136 H 304.5°. Best body text is #FFFFFF at 13.16:1 contrast (WCAG AA passes).

Color values

HEX#45186B
RGBrgb(69, 24, 107)
HSLhsl(273, 63%, 26%)
HSVhsv(273, 78%, 42%)
CMYKcmyk(35.5%, 77.6%, 0%, 58%)
CIE-LABlab(19.96, 37.60, -39.41)
CIE-LCHlch(19.96, 54.47, 313.66°)
OKLaboklab(32.69% 0.077 -0.1122)
OKLCHoklch(32.69% 0.136 304.5)
XYZxyz(5.4341, 2.9800, 14.1960)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45186B #3E6B18
analogous
#1B186B #45186B #6B1867
triadic
#45186B #6B4518 #186B45
tetradic
#45186B #6B1B18 #3E6B18 #18676B
square
#45186B #6B1B18 #3E6B18 #18676B
split-complementary
#45186B #676B18 #186B1B
monochromatic
#100619 #250D39 #45186B #65239D #852ECF

Accessibility & contrast

On white

13.16
#45186B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#45186B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45186B
13.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45186B#FFFFFF#000000##FFFFFF
##45186B1.0013.161.6013.16
#FFFFFF13.161.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6D
Deuteranopia (green-blind)
#003069
Tritanopia (blue-blind)
#3E2C40
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #45186b;
/* rgb */ color: rgb(69, 24, 107);
/* oklch */ color: oklch(32.7% 0.136 304.5);
Tailwind
colors: {
  custom: {
    50: '#7d5a96',
    500: '#45186b',
    950: '#000000',
  },
}
SCSS
$custom: #45186b;
$custom-light: #7d5a96;
$custom-dark: #000000;
JSON
{
  "hex": "#45186b",
  "rgb": {
    "r": 69,
    "g": 24,
    "b": 107
  },
  "hsl": {
    "h": 272.53,
    "s": 63.359,
    "l": 25.686
  },
  "oklch": {
    "l": 0.32688,
    "c": 0.13607,
    "h": 304.5
  },
  "luminance": 0.0298
}

Semantic roles & 50–950 ramp

primary
#45186B
secondary
#6BA13E
accent
#E6418D
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040D
muted
#7C797E

Preview Lab

Preview with #45186B

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

Preview Lab → · Contrast checker → · Palette generator →

#45186B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva