#45236D#45236D

#45236D is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.3% C 0.123 H 301.3°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#45236D
RGBrgb(69, 35, 109)
HSLhsl(268, 51%, 28%)
HSVhsv(268, 68%, 43%)
CMYKcmyk(36.7%, 67.9%, 0%, 57.3%)
CIE-LABlab(22.20, 32.36, -37.08)
CIE-LCHlch(22.20, 49.21, 311.11°)
OKLaboklab(34.34% 0.064 -0.1054)
OKLCHoklch(34.34% 0.123 301.3)
XYZxyz(5.8149, 3.5714, 14.8480)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45236D #4B6D23
analogous
#23266D #45236D #6A236D
triadic
#45236D #6D4523 #236D45
tetradic
#45236D #6D2326 #4B6D23 #236D6A
square
#45236D #6D2326 #4B6D23 #236D6A
split-complementary
#45236D #6D6A23 #266D23
monochromatic
#0F0717 #28143F #45236D #62329B #8047C4

Accessibility & contrast

On white

12.25
#45236D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#45236D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45236D
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45236D#FFFFFF#000000##FFFFFF
##45236D1.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00356F
Deuteranopia (green-blind)
#05356B
Tritanopia (blue-blind)
#3D3344
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #45236d;
/* rgb */ color: rgb(69, 35, 109);
/* oklch */ color: oklch(34.3% 0.123 301.3);
Tailwind
colors: {
  custom: {
    50: '#7c6097',
    500: '#45236d',
    950: '#000000',
  },
}
SCSS
$custom: #45236d;
$custom-light: #7c6097;
$custom-dark: #000000;
JSON
{
  "hex": "#45236d",
  "rgb": {
    "r": 69,
    "g": 35,
    "b": 109
  },
  "hsl": {
    "h": 267.568,
    "s": 51.389,
    "l": 28.235
  },
  "oklch": {
    "l": 0.34337,
    "c": 0.12329,
    "h": 301.3
  },
  "luminance": 0.03571
}

Semantic roles & 50–950 ramp

primary
#45236D
secondary
#79A04B
accent
#DB4D9A
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A050D
muted
#7C797E

Preview Lab

Preview with #45236D

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

Preview Lab → · Contrast checker → · Palette generator →

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