#45238E#45238E

#45238E is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.2% C 0.164 H 290.7°. Best body text is #FFFFFF at 11.15:1 contrast (WCAG AA passes).

Color values

HEX#45238E
RGBrgb(69, 35, 142)
HSLhsl(259, 60%, 35%)
HSVhsv(259, 75%, 56%)
CMYKcmyk(51.4%, 75.4%, 0%, 44.3%)
CIE-LABlab(25.01, 41.76, -53.40)
CIE-LCHlch(25.01, 67.79, 308.02°)
OKLaboklab(37.22% 0.0579 -0.1533)
OKLCHoklch(37.22% 0.164 290.7)
XYZxyz(7.9364, 4.4199, 26.0209)
Luminance0.0442 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45238E #6C8E23
analogous
#23378E #45238E #7A238E
triadic
#45238E #8E4523 #238E45
tetradic
#45238E #8E2337 #6C8E23 #238E7A
square
#45238E #8E2337 #6C8E23 #238E7A
split-complementary
#45238E #8E7A23 #378E23
monochromatic
#150B2C #2D175D #45238E #5D2FBF #7E56D5

Accessibility & contrast

On white

11.15
#45238E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#45238E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45238E
11.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45238E#FFFFFF#000000##FFFFFF
##45238E1.0011.151.8811.15
#FFFFFF11.151.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D91
Deuteranopia (green-blind)
#00398C
Tritanopia (blue-blind)
#2C4056
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #45238e;
/* rgb */ color: rgb(69, 35, 142);
/* oklch */ color: oklch(37.2% 0.164 290.7);
Tailwind
colors: {
  custom: {
    50: '#8161b0',
    500: '#45238e',
    950: '#000000',
  },
}
SCSS
$custom: #45238e;
$custom-light: #8161b0;
$custom-dark: #000000;
JSON
{
  "hex": "#45238e",
  "rgb": {
    "r": 69,
    "g": 35,
    "b": 142
  },
  "hsl": {
    "h": 259.065,
    "s": 60.452,
    "l": 34.706
  },
  "oklch": {
    "l": 0.37219,
    "c": 0.16391,
    "h": 290.7
  },
  "luminance": 0.0442
}

Semantic roles & 50–950 ramp

primary
#45238E
secondary
#99B953
accent
#E444B1
background
#F8F5FA
surface
#EFEAF5
border
#CAC6CF
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #45238E

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

Preview Lab → · Contrast checker → · Palette generator →

#45238E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva