#45236F#45236F

#45236F is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.5% C 0.126 H 300.5°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#45236F
RGBrgb(69, 35, 111)
HSLhsl(267, 52%, 29%)
HSVhsv(267, 68%, 44%)
CMYKcmyk(37.8%, 68.5%, 0%, 56.5%)
CIE-LABlab(22.36, 32.92, -38.12)
CIE-LCHlch(22.36, 50.37, 310.81°)
OKLaboklab(34.5% 0.0638 -0.1084)
OKLCHoklch(34.5% 0.126 300.5)
XYZxyz(5.9238, 3.6149, 15.4215)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45236F #4D6F23
analogous
#23276F #45236F #6B236F
triadic
#45236F #6F4523 #236F45
tetradic
#45236F #6F2327 #4D6F23 #236F6B
square
#45236F #6F2327 #4D6F23 #236F6B
split-complementary
#45236F #6F6B23 #276F23
monochromatic
#0E0717 #281440 #45236F #62329E #8047C5

Accessibility & contrast

On white

12.19
#45236F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#45236F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45236F
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45236F#FFFFFF#000000##FFFFFF
##45236F1.0012.191.7212.19
#FFFFFF12.191.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003571
Deuteranopia (green-blind)
#00356D
Tritanopia (blue-blind)
#3C3445
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #45236f;
/* rgb */ color: rgb(69, 35, 111);
/* oklch */ color: oklch(34.5% 0.126 300.5);
Tailwind
colors: {
  custom: {
    50: '#7c6099',
    500: '#45236f',
    950: '#000000',
  },
}
SCSS
$custom: #45236f;
$custom-light: #7c6099;
$custom-dark: #000000;
JSON
{
  "hex": "#45236f",
  "rgb": {
    "r": 69,
    "g": 35,
    "b": 111
  },
  "hsl": {
    "h": 266.842,
    "s": 52.055,
    "l": 28.627
  },
  "oklch": {
    "l": 0.34497,
    "c": 0.1258,
    "h": 300.5
  },
  "luminance": 0.03615
}

Semantic roles & 50–950 ramp

primary
#45236F
secondary
#7BA24C
accent
#DB4C9B
background
#F7F5F9
surface
#EEEAF2
border
#C9C6CC
text
#0A050E
muted
#7C797E

Preview Lab

Preview with #45236F

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

Preview Lab → · Contrast checker → · Palette generator →

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