#45238C#45238C

#45238C is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.0% C 0.162 H 291.2°. Best body text is #FFFFFF at 11.22:1 contrast (WCAG AA passes).

Color values

HEX#45238C
RGBrgb(69, 35, 140)
HSLhsl(259, 60%, 34%)
HSVhsv(259, 75%, 55%)
CMYKcmyk(50.7%, 75%, 0%, 45.1%)
CIE-LABlab(24.83, 41.18, -52.46)
CIE-LCHlch(24.83, 66.69, 308.13°)
OKLaboklab(37.03% 0.0584 -0.1506)
OKLCHoklch(37.03% 0.162 291.2)
XYZxyz(7.7876, 4.3604, 25.2372)
Luminance0.0436 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45238C #6A8C23
analogous
#23358C #45238C #7A238C
triadic
#45238C #8C4523 #238C45
tetradic
#45238C #8C2335 #6A8C23 #238C7A
square
#45238C #8C2335 #6A8C23 #238C7A
split-complementary
#45238C #8C7A23 #358C23
monochromatic
#150B2A #2D175B #45238C #5D2FBD #7E55D4

Accessibility & contrast

On white

11.22
#45238C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#45238C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45238C
11.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45238C#FFFFFF#000000##FFFFFF
##45238C1.0011.221.8711.22
#FFFFFF11.221.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8F
Deuteranopia (green-blind)
#00398A
Tritanopia (blue-blind)
#2D3F55
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #45238c;
/* rgb */ color: rgb(69, 35, 140);
/* oklch */ color: oklch(37.0% 0.162 291.2);
Tailwind
colors: {
  custom: {
    50: '#8061af',
    500: '#45238c',
    950: '#000000',
  },
}
SCSS
$custom: #45238c;
$custom-light: #8061af;
$custom-dark: #000000;
JSON
{
  "hex": "#45238c",
  "rgb": {
    "r": 69,
    "g": 35,
    "b": 140
  },
  "hsl": {
    "h": 259.429,
    "s": 60,
    "l": 34.314
  },
  "oklch": {
    "l": 0.37032,
    "c": 0.16152,
    "h": 291.2
  },
  "luminance": 0.04361
}

Semantic roles & 50–950 ramp

primary
#45238C
secondary
#97B852
accent
#E345B0
background
#F8F5FA
surface
#EFEAF5
border
#CAC6CF
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #45238C

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

Preview Lab → · Contrast checker → · Palette generator →

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