#45239B#45239B

#45239B is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.5% C 0.179 H 287.7°. Best body text is #FFFFFF at 10.68:1 contrast (WCAG AA passes).

Color values

HEX#45239B
RGBrgb(69, 35, 155)
HSLhsl(257, 63%, 37%)
HSVhsv(257, 77%, 61%)
CMYKcmyk(55.5%, 77.4%, 0%, 39.2%)
CIE-LABlab(26.25, 45.51, -59.37)
CIE-LCHlch(26.25, 74.81, 307.47°)
OKLaboklab(38.47% 0.0544 -0.1708)
OKLCHoklch(38.47% 0.179 287.7)
XYZxyz(8.9699, 4.8334, 31.4643)
Luminance0.0483 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45239B #799B23
analogous
#233D9B #45239B #81239B
triadic
#45239B #9B4523 #239B45
tetradic
#45239B #9B233D #799B23 #239B81
square
#45239B #9B233D #799B23 #239B81
split-complementary
#45239B #9B8123 #3D9B23
monochromatic
#190C37 #2F1869 #45239B #5B2ECD #815EDB

Accessibility & contrast

On white

10.68
#45239B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#45239B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45239B
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45239B#FFFFFF#000000##FFFFFF
##45239B1.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419E
Deuteranopia (green-blind)
#003B99
Tritanopia (blue-blind)
#21455E
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #45239b;
/* rgb */ color: rgb(69, 35, 155);
/* oklch */ color: oklch(38.5% 0.179 287.7);
Tailwind
colors: {
  custom: {
    50: '#8362ba',
    500: '#45239b',
    950: '#000000',
  },
}
SCSS
$custom: #45239b;
$custom-light: #8362ba;
$custom-dark: #000000;
JSON
{
  "hex": "#45239b",
  "rgb": {
    "r": 69,
    "g": 35,
    "b": 155
  },
  "hsl": {
    "h": 257,
    "s": 63.158,
    "l": 37.255
  },
  "oklch": {
    "l": 0.3847,
    "c": 0.17929,
    "h": 287.7
  },
  "luminance": 0.04834
}

Semantic roles & 50–950 ramp

primary
#45239B
secondary
#A3BF5A
accent
#E642B8
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #45239B

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

Preview Lab → · Contrast checker → · Palette generator →

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