#45187D#45187D

#45187D is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.3% C 0.156 H 297.5°. Best body text is #FFFFFF at 12.50:1 contrast (WCAG AA passes).

Color values

HEX#45187D
RGBrgb(69, 24, 125)
HSLhsl(267, 68%, 29%)
HSVhsv(267, 81%, 49%)
CMYKcmyk(44.8%, 80.8%, 0%, 51%)
CIE-LABlab(21.58, 42.31, -48.36)
CIE-LCHlch(21.58, 64.25, 311.19°)
OKLaboklab(34.32% 0.0722 -0.1385)
OKLCHoklch(34.32% 0.156 297.5)
XYZxyz(6.4816, 3.3990, 19.7126)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45187D #507D18
analogous
#181D7D #45187D #78187D
triadic
#45187D #7D4518 #187D45
tetradic
#45187D #7D181D #507D18 #187D78
square
#45187D #7D181D #507D18 #187D78
split-complementary
#45187D #7D7818 #1D7D18
monochromatic
#0E051A #290E4A #45187D #6122B0 #7F37D9

Accessibility & contrast

On white

12.50
#45187D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#45187D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45187D
12.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45187D#FFFFFF#000000##FFFFFF
##45187D1.0012.501.6812.50
#FFFFFF12.501.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003480
Deuteranopia (green-blind)
#00337B
Tritanopia (blue-blind)
#36344A
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #45187d;
/* rgb */ color: rgb(69, 24, 125);
/* oklch */ color: oklch(34.3% 0.156 297.5);
Tailwind
colors: {
  custom: {
    50: '#7f5ba4',
    500: '#45187d',
    950: '#000000',
  },
}
SCSS
$custom: #45187d;
$custom-light: #7f5ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#45187d",
  "rgb": {
    "r": 69,
    "g": 24,
    "b": 125
  },
  "hsl": {
    "h": 266.733,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.34319,
    "c": 0.15617,
    "h": 297.5
  },
  "luminance": 0.03399
}

Semantic roles & 50–950 ramp

primary
#45187D
secondary
#7FB23F
accent
#EB3D9D
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #45187D

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

Preview Lab → · Contrast checker → · Palette generator →

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