#45237B#45237B

#45237B is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.5% C 0.141 H 296.1°. Best body text is #FFFFFF at 11.80:1 contrast (WCAG AA passes).

Color values

HEX#45237B
RGBrgb(69, 35, 123)
HSLhsl(263, 56%, 31%)
HSVhsv(263, 72%, 48%)
CMYKcmyk(43.9%, 71.5%, 0%, 51.8%)
CIE-LABlab(23.33, 36.30, -44.22)
CIE-LCHlch(23.33, 57.21, 309.38°)
OKLaboklab(35.5% 0.062 -0.1264)
OKLCHoklch(35.5% 0.141 296.1)
XYZxyz(6.6295, 3.8972, 19.1380)
Luminance0.0390 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45237B #597B23
analogous
#232D7B #45237B #71237B
triadic
#45237B #7B4523 #237B45
tetradic
#45237B #7B232D #597B23 #237B71
square
#45237B #7B232D #597B23 #237B71
split-complementary
#45237B #7B7123 #2D7B23
monochromatic
#10081C #2A154B #45237B #6031AB #7E4CCC

Accessibility & contrast

On white

11.80
#45237B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #45237B
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45237B#FFFFFF#000000##FFFFFF
##45237B1.0011.801.7811.80
#FFFFFF11.801.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387E
Deuteranopia (green-blind)
#003679
Tritanopia (blue-blind)
#37384C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #45237b;
/* rgb */ color: rgb(69, 35, 123);
/* oklch */ color: oklch(35.5% 0.141 296.1);
Tailwind
colors: {
  custom: {
    50: '#7e61a2',
    500: '#45237b',
    950: '#000000',
  },
}
SCSS
$custom: #45237b;
$custom-light: #7e61a2;
$custom-dark: #000000;
JSON
{
  "hex": "#45237b",
  "rgb": {
    "r": 69,
    "g": 35,
    "b": 123
  },
  "hsl": {
    "h": 263.182,
    "s": 55.696,
    "l": 30.98
  },
  "oklch": {
    "l": 0.35502,
    "c": 0.14079,
    "h": 296.1
  },
  "luminance": 0.03897
}

Semantic roles & 50–950 ramp

primary
#45237B
secondary
#88AE4C
accent
#DF49A5
background
#F8F5FA
surface
#EFEAF3
border
#CAC6CD
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #45237B

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

Preview Lab → · Contrast checker → · Palette generator →

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