#45337F#45337F

#45337F is a dark, vivid violet. Relative luminance 0.052; OKLCH L 38.4% C 0.123 H 290.3°. Best body text is #FFFFFF at 10.33:1 contrast (WCAG AA passes).

Color values

HEX#45337F
RGBrgb(69, 51, 127)
HSLhsl(254, 43%, 35%)
HSVhsv(254, 60%, 50%)
CMYKcmyk(45.7%, 59.8%, 0%, 50.2%)
CIE-LABlab(27.20, 27.95, -40.48)
CIE-LCHlch(27.20, 49.19, 304.62°)
OKLaboklab(38.41% 0.0427 -0.1154)
OKLCHoklch(38.41% 0.123 290.3)
XYZxyz(7.4678, 5.1649, 20.6780)
Luminance0.0517 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45337F #6D7F33
analogous
#33477F #45337F #6B337F
triadic
#45337F #7F4533 #337F45
tetradic
#45337F #7F3347 #6D7F33 #337F6B
square
#45337F #7F3347 #6D7F33 #337F6B
split-complementary
#45337F #7F6B33 #477F33
monochromatic
#161028 #2D2153 #45337F #5D45AB #7F69C3

Accessibility & contrast

On white

10.33
#45337F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#45337F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45337F
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45337F#FFFFFF#000000##FFFFFF
##45337F1.0010.332.0310.33
#FFFFFF10.331.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#014282
Deuteranopia (green-blind)
#063F7D
Tritanopia (blue-blind)
#344454
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #45337f;
/* rgb */ color: rgb(69, 51, 127);
/* oklch */ color: oklch(38.4% 0.123 290.3);
Tailwind
colors: {
  custom: {
    50: '#7d6ba5',
    500: '#45337f',
    950: '#000000',
  },
}
SCSS
$custom: #45337f;
$custom-light: #7d6ba5;
$custom-dark: #000000;
JSON
{
  "hex": "#45337f",
  "rgb": {
    "r": 69,
    "g": 51,
    "b": 127
  },
  "hsl": {
    "h": 254.211,
    "s": 42.697,
    "l": 34.902
  },
  "oklch": {
    "l": 0.38409,
    "c": 0.12304,
    "h": 290.3
  },
  "luminance": 0.05165
}

Semantic roles & 50–950 ramp

primary
#45337F
secondary
#9AAB63
accent
#D255B5
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A070F
muted
#7C7A7F

Preview Lab

Preview with #45337F

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

Preview Lab → · Contrast checker → · Palette generator →

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