#45229D#45229D

#45229D is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.5% C 0.183 H 287.4°. Best body text is #FFFFFF at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#45229D
RGBrgb(69, 34, 157)
HSLhsl(257, 64%, 37%)
HSVhsv(257, 78%, 62%)
CMYKcmyk(56.1%, 78.3%, 0%, 38.4%)
CIE-LABlab(26.28, 46.57, -60.55)
CIE-LCHlch(26.28, 76.39, 307.56°)
OKLaboklab(38.55% 0.0546 -0.1743)
OKLCHoklch(38.55% 0.183 287.4)
XYZxyz(9.1103, 4.8431, 32.3465)
Luminance0.0484 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45229D #7A9D22
analogous
#223D9D #45229D #82229D
triadic
#45229D #9D4522 #229D45
tetradic
#45229D #9D223D #7A9D22 #229D82
square
#45229D #9D223D #7A9D22 #229D82
split-complementary
#45229D #9D8222 #3D9D22
monochromatic
#190C38 #2F176B #45229D #5B2DCF #815DDC

Accessibility & contrast

On white

10.67
#45229D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#45229D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45229D
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45229D#FFFFFF#000000##FFFFFF
##45229D1.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A0
Deuteranopia (green-blind)
#003B9B
Tritanopia (blue-blind)
#1E455F
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #45229d;
/* rgb */ color: rgb(69, 34, 157);
/* oklch */ color: oklch(38.5% 0.183 287.4);
Tailwind
colors: {
  custom: {
    50: '#8362bb',
    500: '#45229d',
    950: '#000000',
  },
}
SCSS
$custom: #45229d;
$custom-light: #8362bb;
$custom-dark: #000000;
JSON
{
  "hex": "#45229d",
  "rgb": {
    "r": 69,
    "g": 34,
    "b": 157
  },
  "hsl": {
    "h": 257.073,
    "s": 64.398,
    "l": 37.451
  },
  "oklch": {
    "l": 0.38549,
    "c": 0.18261,
    "h": 287.4
  },
  "luminance": 0.04844
}

Semantic roles & 50–950 ramp

primary
#45229D
secondary
#A3C15A
accent
#E740B8
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #45229D

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

Preview Lab → · Contrast checker → · Palette generator →

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