#45237E#45237E

#45237E is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.8% C 0.144 H 295.2°. Best body text is #FFFFFF at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#45237E
RGBrgb(69, 35, 126)
HSLhsl(262, 57%, 32%)
HSVhsv(262, 72%, 49%)
CMYKcmyk(45.2%, 72.2%, 0%, 50.6%)
CIE-LABlab(23.58, 37.15, -45.71)
CIE-LCHlch(23.58, 58.91, 309.10°)
OKLaboklab(35.76% 0.0615 -0.1308)
OKLCHoklch(35.76% 0.144 295.2)
XYZxyz(6.8202, 3.9735, 20.1422)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45237E #5C7E23
analogous
#232E7E #45237E #73237E
triadic
#45237E #7E4523 #237E45
tetradic
#45237E #7E232E #5C7E23 #237E73
square
#45237E #7E232E #5C7E23 #237E73
split-complementary
#45237E #7E7323 #2E7E23
monochromatic
#11081E #2B164E #45237E #5F30AE #7E4ECE

Accessibility & contrast

On white

11.70
#45237E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#45237E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45237E
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45237E#FFFFFF#000000##FFFFFF
##45237E1.0011.701.7911.70
#FFFFFF11.701.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003981
Deuteranopia (green-blind)
#00377C
Tritanopia (blue-blind)
#353A4E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #45237e;
/* rgb */ color: rgb(69, 35, 126);
/* oklch */ color: oklch(35.8% 0.144 295.2);
Tailwind
colors: {
  custom: {
    50: '#7e61a4',
    500: '#45237e',
    950: '#000000',
  },
}
SCSS
$custom: #45237e;
$custom-light: #7e61a4;
$custom-dark: #000000;
JSON
{
  "hex": "#45237e",
  "rgb": {
    "r": 69,
    "g": 35,
    "b": 126
  },
  "hsl": {
    "h": 262.418,
    "s": 56.522,
    "l": 31.569
  },
  "oklch": {
    "l": 0.35763,
    "c": 0.14449,
    "h": 295.2
  },
  "luminance": 0.03974
}

Semantic roles & 50–950 ramp

primary
#45237E
secondary
#8BB04C
accent
#E048A7
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #45237E

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

Preview Lab → · Contrast checker → · Palette generator →

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