#45229B#45229B

#45229B is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.4% C 0.180 H 287.8°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#45229B
RGBrgb(69, 34, 155)
HSLhsl(257, 64%, 37%)
HSVhsv(257, 78%, 61%)
CMYKcmyk(55.5%, 78.1%, 0%, 39.2%)
CIE-LABlab(26.09, 46.00, -59.65)
CIE-LCHlch(26.09, 75.33, 307.63°)
OKLaboklab(38.35% 0.0552 -0.1716)
OKLCHoklch(38.35% 0.18 287.8)
XYZxyz(8.9409, 4.7754, 31.4546)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45229B #789B22
analogous
#223C9B #45229B #81229B
triadic
#45229B #9B4522 #229B45
tetradic
#45229B #9B223C #789B22 #229B81
square
#45229B #9B223C #789B22 #229B81
split-complementary
#45229B #9B8122 #3C9B22
monochromatic
#180C37 #2F1769 #45229B #5B2DCD #815CDB

Accessibility & contrast

On white

10.74
#45229B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#45229B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45229B
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45229B#FFFFFF#000000##FFFFFF
##45229B1.0010.741.9610.74
#FFFFFF10.741.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409E
Deuteranopia (green-blind)
#003A99
Tritanopia (blue-blind)
#21445E
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #45229b;
/* rgb */ color: rgb(69, 34, 155);
/* oklch */ color: oklch(38.4% 0.180 287.8);
Tailwind
colors: {
  custom: {
    50: '#8362ba',
    500: '#45229b',
    950: '#000000',
  },
}
SCSS
$custom: #45229b;
$custom-light: #8362ba;
$custom-dark: #000000;
JSON
{
  "hex": "#45229b",
  "rgb": {
    "r": 69,
    "g": 34,
    "b": 155
  },
  "hsl": {
    "h": 257.355,
    "s": 64.021,
    "l": 37.059
  },
  "oklch": {
    "l": 0.38351,
    "c": 0.18029,
    "h": 287.8
  },
  "luminance": 0.04776
}

Semantic roles & 50–950 ramp

primary
#45229B
secondary
#A2C059
accent
#E741B7
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0512
muted
#7D7981

Preview Lab

Preview with #45229B

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

Preview Lab → · Contrast checker → · Palette generator →

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