#45319F#45319F

#45319F is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.8% C 0.169 H 284.4°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#45319F
RGBrgb(69, 49, 159)
HSLhsl(251, 53%, 41%)
HSVhsv(251, 69%, 62%)
CMYKcmyk(56.6%, 69.2%, 0%, 37.6%)
CIE-LABlab(29.32, 39.17, -56.78)
CIE-LCHlch(29.32, 68.98, 304.60°)
OKLaboklab(40.76% 0.0419 -0.1633)
OKLCHoklch(40.76% 0.169 284.4)
XYZxyz(9.8087, 5.9645, 33.4286)
Luminance0.0597 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45319F #8B9F31
analogous
#31549F #45319F #7C319F
triadic
#45319F #9F4531 #319F45
tetradic
#45319F #9F3154 #8B9F31 #319F7C
square
#45319F #9F3154 #8B9F31 #319F7C
split-complementary
#45319F #9F7C31 #549F31
monochromatic
#1C1441 #312370 #45319F #5E47C6 #8776D5

Accessibility & contrast

On white

9.58
#45319F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#45319F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45319F
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45319F#FFFFFF#000000##FFFFFF
##45319F1.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A2
Deuteranopia (green-blind)
#00429D
Tritanopia (blue-blind)
#1A4D64
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #45319f;
/* rgb */ color: rgb(69, 49, 159);
/* oklch */ color: oklch(40.8% 0.169 284.4);
Tailwind
colors: {
  custom: {
    50: '#826bbc',
    500: '#45319f',
    950: '#000000',
  },
}
SCSS
$custom: #45319f;
$custom-light: #826bbc;
$custom-dark: #000000;
JSON
{
  "hex": "#45319f",
  "rgb": {
    "r": 69,
    "g": 49,
    "b": 159
  },
  "hsl": {
    "h": 250.909,
    "s": 52.885,
    "l": 40.784
  },
  "oklch": {
    "l": 0.40759,
    "c": 0.16858,
    "h": 284.4
  },
  "luminance": 0.05965
}

Semantic roles & 50–950 ramp

primary
#45319F
secondary
#AFBD6F
accent
#DC4CC2
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0B0712
muted
#7C7A81

Preview Lab

Preview with #45319F

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

Preview Lab → · Contrast checker → · Palette generator →

#45319F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva