#45308C#45308C

#45308C is a dark, vivid violet. Relative luminance 0.053; OKLCH L 38.9% C 0.145 H 288.2°. Best body text is #FFFFFF at 10.22:1 contrast (WCAG AA passes).

Color values

HEX#45308C
RGBrgb(69, 48, 140)
HSLhsl(254, 49%, 37%)
HSVhsv(254, 66%, 55%)
CMYKcmyk(50.7%, 65.7%, 0%, 45.1%)
CIE-LABlab(27.50, 33.84, -48.11)
CIE-LCHlch(27.50, 58.81, 305.12°)
OKLaboklab(38.94% 0.0454 -0.1378)
OKLCHoklch(38.94% 0.145 288.2)
XYZxyz(8.2434, 5.2722, 25.3891)
Luminance0.0527 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45308C #778C30
analogous
#30498C #45308C #73308C
triadic
#45308C #8C4530 #308C45
tetradic
#45308C #8C3049 #778C30 #308C73
square
#45308C #8C3049 #778C30 #308C73
split-complementary
#45308C #8C7330 #498C30
monochromatic
#181131 #2F205E #45308C #5B40BA #816ACC

Accessibility & contrast

On white

10.22
#45308C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #45308C
10.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45308C#FFFFFF#000000##FFFFFF
##45308C1.0010.222.0510.22
#FFFFFF10.221.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438F
Deuteranopia (green-blind)
#003F8A
Tritanopia (blue-blind)
#2C4659
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #45308c;
/* rgb */ color: rgb(69, 48, 140);
/* oklch */ color: oklch(38.9% 0.145 288.2);
Tailwind
colors: {
  custom: {
    50: '#7f69ae',
    500: '#45308c',
    950: '#000000',
  },
}
SCSS
$custom: #45308c;
$custom-light: #7f69ae;
$custom-dark: #000000;
JSON
{
  "hex": "#45308c",
  "rgb": {
    "r": 69,
    "g": 48,
    "b": 140
  },
  "hsl": {
    "h": 253.696,
    "s": 48.936,
    "l": 36.863
  },
  "oklch": {
    "l": 0.38942,
    "c": 0.14513,
    "h": 288.2
  },
  "luminance": 0.05273
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #45308C

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

Preview Lab → · Contrast checker → · Palette generator →

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