#45397B#45397B

#45397B is a dark, moderate violet. Relative luminance 0.056; OKLCH L 39.2% C 0.108 H 288.8°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#45397B
RGBrgb(69, 57, 123)
HSLhsl(251, 37%, 35%)
HSVhsv(251, 54%, 48%)
CMYKcmyk(43.9%, 53.7%, 0%, 51.8%)
CIE-LABlab(28.44, 22.84, -35.98)
CIE-LCHlch(28.44, 42.62, 302.41°)
OKLaboklab(39.24% 0.0348 -0.1021)
OKLCHoklch(39.24% 0.108 288.8)
XYZxyz(7.4915, 5.6213, 19.4253)
Luminance0.0562 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45397B #6F7B39
analogous
#394E7B #45397B #66397B
triadic
#45397B #7B4539 #397B45
tetradic
#45397B #7B394E #6F7B39 #397B66
square
#45397B #7B394E #6F7B39 #397B66
split-complementary
#45397B #7B6639 #4E7B39
monochromatic
#161227 #2E2651 #45397B #5C4CA5 #7F71BD

Accessibility & contrast

On white

9.89
#45397B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#45397B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45397B
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45397B#FFFFFF#000000##FFFFFF
##45397B1.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C447D
Deuteranopia (green-blind)
#1C417A
Tritanopia (blue-blind)
#354754
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #45397b;
/* rgb */ color: rgb(69, 57, 123);
/* oklch */ color: oklch(39.2% 0.108 288.8);
Tailwind
colors: {
  custom: {
    50: '#7c6fa2',
    500: '#45397b',
    950: '#000000',
  },
}
SCSS
$custom: #45397b;
$custom-light: #7c6fa2;
$custom-dark: #000000;
JSON
{
  "hex": "#45397b",
  "rgb": {
    "r": 69,
    "g": 57,
    "b": 123
  },
  "hsl": {
    "h": 250.909,
    "s": 36.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.39237,
    "c": 0.10789,
    "h": 288.8
  },
  "luminance": 0.05622
}

Semantic roles & 50–950 ramp

primary
#45397B
secondary
#9BA669
accent
#CD5BB8
background
#F7F6FA
surface
#EEECF3
border
#C9C7CD
text
#0A070F
muted
#7C7A7F

Preview Lab

Preview with #45397B

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

Preview Lab → · Contrast checker → · Palette generator →

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