#45348E#45348E

#45348E is a dark, vivid violet. Relative luminance 0.057; OKLCH L 39.8% C 0.142 H 286.7°. Best body text is #FFFFFF at 9.84:1 contrast (WCAG AA passes).

Color values

HEX#45348E
RGBrgb(69, 52, 142)
HSLhsl(251, 46%, 38%)
HSVhsv(251, 63%, 56%)
CMYKcmyk(51.4%, 63.4%, 0%, 44.3%)
CIE-LABlab(28.57, 32.02, -47.59)
CIE-LCHlch(28.57, 57.36, 303.93°)
OKLaboklab(39.78% 0.0409 -0.1363)
OKLCHoklch(39.78% 0.142 286.7)
XYZxyz(8.5633, 5.6738, 26.2299)
Luminance0.0567 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45348E #7D8E34
analogous
#34508E #45348E #72348E
triadic
#45348E #8E4534 #348E45
tetradic
#45348E #8E3450 #7D8E34 #348E72
square
#45348E #8E3450 #7D8E34 #348E72
split-complementary
#45348E #8E7234 #508E34
monochromatic
#191334 #2F2461 #45348E #5B44BB #8271CB

Accessibility & contrast

On white

9.84
#45348E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#45348E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45348E
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45348E#FFFFFF#000000##FFFFFF
##45348E1.009.842.139.84
#FFFFFF9.841.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004691
Deuteranopia (green-blind)
#00418C
Tritanopia (blue-blind)
#2B495C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #45348e;
/* rgb */ color: rgb(69, 52, 142);
/* oklch */ color: oklch(39.8% 0.142 286.7);
Tailwind
colors: {
  custom: {
    50: '#7f6cb0',
    500: '#45348e',
    950: '#000000',
  },
}
SCSS
$custom: #45348e;
$custom-light: #7f6cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#45348e",
  "rgb": {
    "r": 69,
    "g": 52,
    "b": 142
  },
  "hsl": {
    "h": 251.333,
    "s": 46.392,
    "l": 38.039
  },
  "oklch": {
    "l": 0.39776,
    "c": 0.14231,
    "h": 286.7
  },
  "luminance": 0.05674
}

Semantic roles & 50–950 ramp

primary
#45348E
secondary
#A6B36A
accent
#D652BD
background
#F8F6FA
surface
#EFEBF5
border
#CAC6CF
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #45348E

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

Preview Lab → · Contrast checker → · Palette generator →

#45348E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva