#45239C#45239C

#45239C is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.6% C 0.180 H 287.5°. Best body text is #FFFFFF at 10.64:1 contrast (WCAG AA passes).

Color values

HEX#45239C
RGBrgb(69, 35, 156)
HSLhsl(257, 63%, 37%)
HSVhsv(257, 78%, 61%)
CMYKcmyk(55.8%, 77.6%, 0%, 38.8%)
CIE-LABlab(26.35, 45.80, -59.82)
CIE-LCHlch(26.35, 75.34, 307.44°)
OKLaboklab(38.57% 0.0542 -0.1721)
OKLCHoklch(38.57% 0.18 287.5)
XYZxyz(9.0542, 4.8671, 31.9084)
Luminance0.0487 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45239C #7A9C23
analogous
#233D9C #45239C #82239C
triadic
#45239C #9C4523 #239C45
tetradic
#45239C #9C233D #7A9C23 #239C82
square
#45239C #9C233D #7A9C23 #239C82
split-complementary
#45239C #9C8223 #3D9C23
monochromatic
#190D38 #2F186A #45239C #5B2ECE #815EDB

Accessibility & contrast

On white

10.64
#45239C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #45239C
10.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45239C#FFFFFF#000000##FFFFFF
##45239C1.0010.641.9710.64
#FFFFFF10.641.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419F
Deuteranopia (green-blind)
#003B9A
Tritanopia (blue-blind)
#1F455E
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #45239c;
/* rgb */ color: rgb(69, 35, 156);
/* oklch */ color: oklch(38.6% 0.180 287.5);
Tailwind
colors: {
  custom: {
    50: '#8362ba',
    500: '#45239c',
    950: '#000000',
  },
}
SCSS
$custom: #45239c;
$custom-light: #8362ba;
$custom-dark: #000000;
JSON
{
  "hex": "#45239c",
  "rgb": {
    "r": 69,
    "g": 35,
    "b": 156
  },
  "hsl": {
    "h": 256.86,
    "s": 63.351,
    "l": 37.451
  },
  "oklch": {
    "l": 0.38568,
    "c": 0.18047,
    "h": 287.5
  },
  "luminance": 0.04868
}

Semantic roles & 50–950 ramp

primary
#45239C
secondary
#A3C05B
accent
#E641B8
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #45239C

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

Preview Lab → · Contrast checker → · Palette generator →

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