#45317D#45317D

#45317D is a dark, vivid violet. Relative luminance 0.049; OKLCH L 37.9% C 0.123 H 291.5°. Best body text is #FFFFFF at 10.56:1 contrast (WCAG AA passes).

Color values

HEX#45317D
RGBrgb(69, 49, 125)
HSLhsl(256, 44%, 34%)
HSVhsv(256, 61%, 49%)
CMYKcmyk(44.8%, 60.8%, 0%, 51%)
CIE-LABlab(26.57, 28.59, -40.24)
CIE-LCHlch(26.57, 49.36, 305.40°)
OKLaboklab(37.9% 0.0453 -0.1147)
OKLCHoklch(37.9% 0.123 291.5)
XYZxyz(7.2532, 4.9423, 19.9699)
Luminance0.0494 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45317D #697D31
analogous
#31437D #45317D #6B317D
triadic
#45317D #7D4531 #317D45
tetradic
#45317D #7D3143 #697D31 #317D6B
square
#45317D #7D3143 #697D31 #317D6B
split-complementary
#45317D #7D6B31 #437D31
monochromatic
#140F25 #2D2051 #45317D #5D42A9 #7E66C3

Accessibility & contrast

On white

10.56
#45317D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#45317D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45317D
10.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45317D#FFFFFF#000000##FFFFFF
##45317D1.0010.561.9910.56
#FFFFFF10.561.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00407F
Deuteranopia (green-blind)
#053D7B
Tritanopia (blue-blind)
#354252
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #45317d;
/* rgb */ color: rgb(69, 49, 125);
/* oklch */ color: oklch(37.9% 0.123 291.5);
Tailwind
colors: {
  custom: {
    50: '#7d6aa3',
    500: '#45317d',
    950: '#000000',
  },
}
SCSS
$custom: #45317d;
$custom-light: #7d6aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#45317d",
  "rgb": {
    "r": 69,
    "g": 49,
    "b": 125
  },
  "hsl": {
    "h": 255.789,
    "s": 43.678,
    "l": 34.118
  },
  "oklch": {
    "l": 0.379,
    "c": 0.12329,
    "h": 291.5
  },
  "luminance": 0.04943
}

Semantic roles & 50–950 ramp

primary
#45317D
secondary
#97AA60
accent
#D354B2
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A060F
muted
#7C7A7F

Preview Lab

Preview with #45317D

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

Preview Lab → · Contrast checker → · Palette generator →

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