#45397F#45397F

#45397F is a dark, moderate violet. Relative luminance 0.057; OKLCH L 39.5% C 0.114 H 287.9°. Best body text is #FFFFFF at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#45397F
RGBrgb(69, 57, 127)
HSLhsl(250, 38%, 36%)
HSVhsv(250, 55%, 50%)
CMYKcmyk(45.7%, 55.1%, 0%, 50.2%)
CIE-LABlab(28.70, 24.10, -38.06)
CIE-LCHlch(28.70, 45.05, 302.34°)
OKLaboklab(39.52% 0.035 -0.1082)
OKLCHoklch(39.52% 0.114 287.9)
XYZxyz(7.7470, 5.7235, 20.7711)
Luminance0.0572 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45397F #737F39
analogous
#39507F #45397F #68397F
triadic
#45397F #7F4539 #397F45
tetradic
#45397F #7F3950 #737F39 #397F68
square
#45397F #7F3950 #737F39 #397F68
split-complementary
#45397F #7F6839 #507F39
monochromatic
#17132B #2E2655 #45397F #5C4CA9 #8072C0

Accessibility & contrast

On white

9.79
#45397F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#45397F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45397F
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45397F#FFFFFF#000000##FFFFFF
##45397F1.009.792.149.79
#FFFFFF9.791.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#174581
Deuteranopia (green-blind)
#17427D
Tritanopia (blue-blind)
#334856
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #45397f;
/* rgb */ color: rgb(69, 57, 127);
/* oklch */ color: oklch(39.5% 0.114 287.9);
Tailwind
colors: {
  custom: {
    50: '#7d6fa5',
    500: '#45397f',
    950: '#000000',
  },
}
SCSS
$custom: #45397f;
$custom-light: #7d6fa5;
$custom-dark: #000000;
JSON
{
  "hex": "#45397f",
  "rgb": {
    "r": 69,
    "g": 57,
    "b": 127
  },
  "hsl": {
    "h": 250.286,
    "s": 38.043,
    "l": 36.078
  },
  "oklch": {
    "l": 0.39522,
    "c": 0.11377,
    "h": 287.9
  },
  "luminance": 0.05724
}

Semantic roles & 50–950 ramp

primary
#45397F
secondary
#9EA96B
accent
#CE5ABA
background
#F7F6FA
surface
#EEECF4
border
#C9C7CE
text
#0A070F
muted
#7C7A7F

Preview Lab

Preview with #45397F

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

Preview Lab → · Contrast checker → · Palette generator →

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