#45338D#45338D

#45338D is a dark, vivid violet. Relative luminance 0.056; OKLCH L 39.5% C 0.142 H 287.2°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#45338D
RGBrgb(69, 51, 141)
HSLhsl(252, 47%, 38%)
HSVhsv(252, 64%, 55%)
CMYKcmyk(51.1%, 63.8%, 0%, 44.7%)
CIE-LABlab(28.26, 32.32, -47.48)
CIE-LCHlch(28.26, 57.44, 304.24°)
OKLaboklab(39.52% 0.0421 -0.136)
OKLCHoklch(39.52% 0.142 287.2)
XYZxyz(8.4444, 5.5556, 25.8215)
Luminance0.0556 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45338D #7B8D33
analogous
#334E8D #45338D #72338D
triadic
#45338D #8D4533 #338D45
tetradic
#45338D #8D334E #7B8D33 #338D72
square
#45338D #8D334E #7B8D33 #338D72
split-complementary
#45338D #8D7233 #4E8D33
monochromatic
#191233 #2F2360 #45338D #5B43BA #826FCB

Accessibility & contrast

On white

9.95
#45338D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#45338D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45338D
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45338D#FFFFFF#000000##FFFFFF
##45338D1.009.952.119.95
#FFFFFF9.951.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004590
Deuteranopia (green-blind)
#00408B
Tritanopia (blue-blind)
#2B485B
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #45338d;
/* rgb */ color: rgb(69, 51, 141);
/* oklch */ color: oklch(39.5% 0.142 287.2);
Tailwind
colors: {
  custom: {
    50: '#7f6baf',
    500: '#45338d',
    950: '#000000',
  },
}
SCSS
$custom: #45338d;
$custom-light: #7f6baf;
$custom-dark: #000000;
JSON
{
  "hex": "#45338d",
  "rgb": {
    "r": 69,
    "g": 51,
    "b": 141
  },
  "hsl": {
    "h": 252,
    "s": 46.875,
    "l": 37.647
  },
  "oklch": {
    "l": 0.39524,
    "c": 0.14235,
    "h": 287.2
  },
  "luminance": 0.05556
}

Semantic roles & 50–950 ramp

primary
#45338D
secondary
#A4B369
accent
#D751BC
background
#F8F6FA
surface
#EFEBF5
border
#CAC6CF
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #45338D

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

Preview Lab → · Contrast checker → · Palette generator →

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