#45258B#45258B

#45258B is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.2% C 0.158 H 291.1°. Best body text is #FFFFFF at 11.11:1 contrast (WCAG AA passes).

Color values

HEX#45258B
RGBrgb(69, 37, 139)
HSLhsl(259, 58%, 35%)
HSVhsv(259, 73%, 55%)
CMYKcmyk(50.4%, 73.4%, 0%, 45.5%)
CIE-LABlab(25.11, 39.83, -51.37)
CIE-LCHlch(25.11, 65.01, 307.79°)
OKLaboklab(37.21% 0.0568 -0.1474)
OKLCHoklch(37.21% 0.158 291.1)
XYZxyz(7.7747, 4.4521, 24.8708)
Luminance0.0445 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45258B #6B8B25
analogous
#25388B #45258B #78258B
triadic
#45258B #8B4525 #258B45
tetradic
#45258B #8B2538 #6B8B25 #258B78
square
#45258B #8B2538 #6B8B25 #258B78
split-complementary
#45258B #8B7825 #388B25
monochromatic
#150B2A #2D185B #45258B #5D32BB #7E58D3

Accessibility & contrast

On white

11.11
#45258B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#45258B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45258B
11.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45258B#FFFFFF#000000##FFFFFF
##45258B1.0011.111.8911.11
#FFFFFF11.111.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8E
Deuteranopia (green-blind)
#003989
Tritanopia (blue-blind)
#2E4055
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #45258b;
/* rgb */ color: rgb(69, 37, 139);
/* oklch */ color: oklch(37.2% 0.158 291.1);
Tailwind
colors: {
  custom: {
    50: '#8063ae',
    500: '#45258b',
    950: '#000000',
  },
}
SCSS
$custom: #45258b;
$custom-light: #8063ae;
$custom-dark: #000000;
JSON
{
  "hex": "#45258b",
  "rgb": {
    "r": 69,
    "g": 37,
    "b": 139
  },
  "hsl": {
    "h": 258.824,
    "s": 57.955,
    "l": 34.51
  },
  "oklch": {
    "l": 0.37205,
    "c": 0.15797,
    "h": 291.1
  },
  "luminance": 0.04452
}

Semantic roles & 50–950 ramp

primary
#45258B
secondary
#98B755
accent
#E147B1
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0510
muted
#7C7A7F

Preview Lab

Preview with #45258B

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

Preview Lab → · Contrast checker → · Palette generator →

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