#45237A#45237A

#45237A is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.4% C 0.140 H 296.5°. Best body text is #FFFFFF at 11.83:1 contrast (WCAG AA passes).

Color values

HEX#45237A
RGBrgb(69, 35, 122)
HSLhsl(263, 55%, 31%)
HSVhsv(263, 71%, 48%)
CMYKcmyk(43.4%, 71.3%, 0%, 52.2%)
CIE-LABlab(23.24, 36.01, -43.73)
CIE-LCHlch(23.24, 56.65, 309.48°)
OKLaboklab(35.42% 0.0622 -0.1249)
OKLCHoklch(35.42% 0.14 296.5)
XYZxyz(6.5672, 3.8723, 18.8100)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45237A #587A23
analogous
#232C7A #45237A #70237A
triadic
#45237A #7A4523 #237A45
tetradic
#45237A #7A232C #587A23 #237A70
square
#45237A #7A232C #587A23 #237A70
split-complementary
#45237A #7A7023 #2C7A23
monochromatic
#0F081B #2A154A #45237A #6031AA #7E4CCC

Accessibility & contrast

On white

11.83
#45237A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#45237A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45237A
11.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45237A#FFFFFF#000000##FFFFFF
##45237A1.0011.831.7711.83
#FFFFFF11.831.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387D
Deuteranopia (green-blind)
#003678
Tritanopia (blue-blind)
#37384B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #45237a;
/* rgb */ color: rgb(69, 35, 122);
/* oklch */ color: oklch(35.4% 0.140 296.5);
Tailwind
colors: {
  custom: {
    50: '#7e61a1',
    500: '#45237a',
    950: '#000000',
  },
}
SCSS
$custom: #45237a;
$custom-light: #7e61a1;
$custom-dark: #000000;
JSON
{
  "hex": "#45237a",
  "rgb": {
    "r": 69,
    "g": 35,
    "b": 122
  },
  "hsl": {
    "h": 263.448,
    "s": 55.414,
    "l": 30.784
  },
  "oklch": {
    "l": 0.35415,
    "c": 0.13956,
    "h": 296.5
  },
  "luminance": 0.03872
}

Semantic roles & 50–950 ramp

primary
#45237A
secondary
#87AD4C
accent
#DF49A4
background
#F7F5FA
surface
#EEEAF3
border
#C9C6CD
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #45237A

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

Preview Lab → · Contrast checker → · Palette generator →

#45237A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva