#45308B#45308B

#45308B is a dark, vivid violet. Relative luminance 0.052; OKLCH L 38.9% C 0.144 H 288.5°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#45308B
RGBrgb(69, 48, 139)
HSLhsl(254, 49%, 37%)
HSVhsv(254, 65%, 55%)
CMYKcmyk(50.4%, 65.5%, 0%, 45.5%)
CIE-LABlab(27.42, 33.53, -47.62)
CIE-LCHlch(27.42, 58.24, 305.15°)
OKLaboklab(38.86% 0.0456 -0.1364)
OKLCHoklch(38.86% 0.144 288.5)
XYZxyz(8.1700, 5.2428, 25.0026)
Luminance0.0524 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45308B #768B30
analogous
#30498B #45308B #73308B
triadic
#45308B #8B4530 #308B45
tetradic
#45308B #8B3049 #768B30 #308B73
square
#45308B #8B3049 #768B30 #308B73
split-complementary
#45308B #8B7330 #498B30
monochromatic
#181130 #2E205E #45308B #5C40B8 #806ACC

Accessibility & contrast

On white

10.25
#45308B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#45308B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45308B
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45308B#FFFFFF#000000##FFFFFF
##45308B1.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438E
Deuteranopia (green-blind)
#003E89
Tritanopia (blue-blind)
#2D4659
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #45308b;
/* rgb */ color: rgb(69, 48, 139);
/* oklch */ color: oklch(38.9% 0.144 288.5);
Tailwind
colors: {
  custom: {
    50: '#7f69ae',
    500: '#45308b',
    950: '#000000',
  },
}
SCSS
$custom: #45308b;
$custom-light: #7f69ae;
$custom-dark: #000000;
JSON
{
  "hex": "#45308b",
  "rgb": {
    "r": 69,
    "g": 48,
    "b": 139
  },
  "hsl": {
    "h": 253.846,
    "s": 48.663,
    "l": 36.667
  },
  "oklch": {
    "l": 0.38858,
    "c": 0.1438,
    "h": 288.5
  },
  "luminance": 0.05243
}

Semantic roles & 50–950 ramp

primary
#45308B
secondary
#A1B364
accent
#D850B9
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #45308B

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

Preview Lab → · Contrast checker → · Palette generator →

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