#45237D#45237D

#45237D is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.7% C 0.143 H 295.5°. Best body text is #FFFFFF at 11.73:1 contrast (WCAG AA passes).

Color values

HEX#45237D
RGBrgb(69, 35, 125)
HSLhsl(263, 56%, 31%)
HSVhsv(263, 72%, 49%)
CMYKcmyk(44.8%, 72%, 0%, 51%)
CIE-LABlab(23.50, 36.87, -45.22)
CIE-LCHlch(23.50, 58.34, 309.19°)
OKLaboklab(35.68% 0.0617 -0.1293)
OKLCHoklch(35.68% 0.143 295.5)
XYZxyz(6.7560, 3.9478, 19.8041)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45237D #5B7D23
analogous
#232E7D #45237D #72237D
triadic
#45237D #7D4523 #237D45
tetradic
#45237D #7D232E #5B7D23 #237D72
square
#45237D #7D232E #5B7D23 #237D72
split-complementary
#45237D #7D7223 #2E7D23
monochromatic
#10081D #2B164D #45237D #5F30AD #7E4DCD

Accessibility & contrast

On white

11.73
#45237D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #45237D
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45237D#FFFFFF#000000##FFFFFF
##45237D1.0011.731.7911.73
#FFFFFF11.731.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003980
Deuteranopia (green-blind)
#00377B
Tritanopia (blue-blind)
#36394D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #45237d;
/* rgb */ color: rgb(69, 35, 125);
/* oklch */ color: oklch(35.7% 0.143 295.5);
Tailwind
colors: {
  custom: {
    50: '#7e61a3',
    500: '#45237d',
    950: '#000000',
  },
}
SCSS
$custom: #45237d;
$custom-light: #7e61a3;
$custom-dark: #000000;
JSON
{
  "hex": "#45237d",
  "rgb": {
    "r": 69,
    "g": 35,
    "b": 125
  },
  "hsl": {
    "h": 262.667,
    "s": 56.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.35676,
    "c": 0.14326,
    "h": 295.5
  },
  "luminance": 0.03948
}

Semantic roles & 50–950 ramp

primary
#45237D
secondary
#8AAF4C
accent
#E048A6
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #45237D

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

Preview Lab → · Contrast checker → · Palette generator →

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