#45237C#45237C

#45237C is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.6% C 0.142 H 295.8°. Best body text is #FFFFFF at 11.77:1 contrast (WCAG AA passes).

Color values

HEX#45237C
RGBrgb(69, 35, 124)
HSLhsl(263, 56%, 31%)
HSVhsv(263, 72%, 49%)
CMYKcmyk(44.4%, 71.8%, 0%, 51.4%)
CIE-LABlab(23.41, 36.58, -44.72)
CIE-LCHlch(23.41, 57.78, 309.28°)
OKLaboklab(35.59% 0.0619 -0.1278)
OKLCHoklch(35.59% 0.142 295.8)
XYZxyz(6.6924, 3.9224, 19.4694)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45237C #5A7C23
analogous
#232D7C #45237C #71237C
triadic
#45237C #7C4523 #237C45
tetradic
#45237C #7C232D #5A7C23 #237C71
square
#45237C #7C232D #5A7C23 #237C71
split-complementary
#45237C #7C7123 #2D7C23
monochromatic
#10081D #2A164C #45237C #6030AC #7E4DCD

Accessibility & contrast

On white

11.77
#45237C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#45237C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45237C
11.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45237C#FFFFFF#000000##FFFFFF
##45237C1.0011.771.7811.77
#FFFFFF11.771.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387F
Deuteranopia (green-blind)
#00367A
Tritanopia (blue-blind)
#36394C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #45237c;
/* rgb */ color: rgb(69, 35, 124);
/* oklch */ color: oklch(35.6% 0.142 295.8);
Tailwind
colors: {
  custom: {
    50: '#7e61a3',
    500: '#45237c',
    950: '#000000',
  },
}
SCSS
$custom: #45237c;
$custom-light: #7e61a3;
$custom-dark: #000000;
JSON
{
  "hex": "#45237c",
  "rgb": {
    "r": 69,
    "g": 35,
    "b": 124
  },
  "hsl": {
    "h": 262.921,
    "s": 55.975,
    "l": 31.176
  },
  "oklch": {
    "l": 0.35588,
    "c": 0.14203,
    "h": 295.8
  },
  "luminance": 0.03923
}

Semantic roles & 50–950 ramp

primary
#45237C
secondary
#89AF4C
accent
#DF49A6
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #45237C

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

Preview Lab → · Contrast checker → · Palette generator →

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