#45187B#45187B

#45187B is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.1% C 0.154 H 298.2°. Best body text is #FFFFFF at 12.58:1 contrast (WCAG AA passes).

Color values

HEX#45187B
RGBrgb(69, 24, 123)
HSLhsl(267, 67%, 29%)
HSVhsv(267, 80%, 48%)
CMYKcmyk(43.9%, 80.5%, 0%, 51.8%)
CIE-LABlab(21.39, 41.78, -47.39)
CIE-LCHlch(21.39, 63.18, 311.40°)
OKLaboklab(34.13% 0.0728 -0.1356)
OKLCHoklch(34.13% 0.154 298.2)
XYZxyz(6.3551, 3.3484, 19.0465)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45187B #4E7B18
analogous
#181C7B #45187B #77187B
triadic
#45187B #7B4518 #187B45
tetradic
#45187B #7B181C #4E7B18 #187B77
square
#45187B #7B181C #4E7B18 #187B77
split-complementary
#45187B #7B7718 #1C7B18
monochromatic
#0E051A #280E48 #45187B #6222AE #7F36D8

Accessibility & contrast

On white

12.58
#45187B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#45187B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45187B
12.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45187B#FFFFFF#000000##FFFFFF
##45187B1.0012.581.6712.58
#FFFFFF12.581.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337E
Deuteranopia (green-blind)
#003279
Tritanopia (blue-blind)
#373349
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #45187b;
/* rgb */ color: rgb(69, 24, 123);
/* oklch */ color: oklch(34.1% 0.154 298.2);
Tailwind
colors: {
  custom: {
    50: '#7f5ba2',
    500: '#45187b',
    950: '#000000',
  },
}
SCSS
$custom: #45187b;
$custom-light: #7f5ba2;
$custom-dark: #000000;
JSON
{
  "hex": "#45187b",
  "rgb": {
    "r": 69,
    "g": 24,
    "b": 123
  },
  "hsl": {
    "h": 267.273,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.34131,
    "c": 0.15394,
    "h": 298.2
  },
  "luminance": 0.03349
}

Semantic roles & 50–950 ramp

primary
#45187B
secondary
#7DB03F
accent
#EA3E9C
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #45187B

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

Preview Lab → · Contrast checker → · Palette generator →

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