#45239D#45239D

#45239D is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.7% C 0.182 H 287.2°. Best body text is #FFFFFF at 10.60:1 contrast (WCAG AA passes).

Color values

HEX#45239D
RGBrgb(69, 35, 157)
HSLhsl(257, 64%, 38%)
HSVhsv(257, 78%, 62%)
CMYKcmyk(56.1%, 77.7%, 0%, 38.4%)
CIE-LABlab(26.45, 46.09, -60.27)
CIE-LCHlch(26.45, 75.87, 307.40°)
OKLaboklab(38.67% 0.0539 -0.1735)
OKLCHoklch(38.67% 0.182 287.2)
XYZxyz(9.1393, 4.9011, 32.3562)
Luminance0.0490 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45239D #7B9D23
analogous
#233E9D #45239D #82239D
triadic
#45239D #9D4523 #239D45
tetradic
#45239D #9D233E #7B9D23 #239D82
square
#45239D #9D233E #7B9D23 #239D82
split-complementary
#45239D #9D8223 #3E9D23
monochromatic
#190D39 #2F186B #45239D #5B2ECF #825FDB

Accessibility & contrast

On white

10.60
#45239D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#45239D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45239D
10.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45239D#FFFFFF#000000##FFFFFF
##45239D1.0010.601.9810.60
#FFFFFF10.601.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A0
Deuteranopia (green-blind)
#003B9B
Tritanopia (blue-blind)
#1E465F
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #45239d;
/* rgb */ color: rgb(69, 35, 157);
/* oklch */ color: oklch(38.7% 0.182 287.2);
Tailwind
colors: {
  custom: {
    50: '#8362bb',
    500: '#45239d',
    950: '#000000',
  },
}
SCSS
$custom: #45239d;
$custom-light: #8362bb;
$custom-dark: #000000;
JSON
{
  "hex": "#45239d",
  "rgb": {
    "r": 69,
    "g": 35,
    "b": 157
  },
  "hsl": {
    "h": 256.721,
    "s": 63.542,
    "l": 37.647
  },
  "oklch": {
    "l": 0.38667,
    "c": 0.18163,
    "h": 287.2
  },
  "luminance": 0.04902
}

Semantic roles & 50–950 ramp

primary
#45239D
secondary
#A4C05C
accent
#E741B8
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #45239D

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

Preview Lab → · Contrast checker → · Palette generator →

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