#45238F#45238F

#45238F is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.3% C 0.165 H 290.4°. Best body text is #FFFFFF at 11.11:1 contrast (WCAG AA passes).

Color values

HEX#45238F
RGBrgb(69, 35, 143)
HSLhsl(259, 61%, 35%)
HSVhsv(259, 76%, 56%)
CMYKcmyk(51.7%, 75.5%, 0%, 43.9%)
CIE-LABlab(25.11, 42.05, -53.87)
CIE-LCHlch(25.11, 68.33, 307.97°)
OKLaboklab(37.31% 0.0577 -0.1547)
OKLCHoklch(37.31% 0.165 290.4)
XYZxyz(8.0118, 4.4501, 26.4181)
Luminance0.0445 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45238F #6D8F23
analogous
#23378F #45238F #7B238F
triadic
#45238F #8F4523 #238F45
tetradic
#45238F #8F2337 #6D8F23 #238F7B
square
#45238F #8F2337 #6D8F23 #238F7B
split-complementary
#45238F #8F7B23 #378F23
monochromatic
#160B2D #2D175E #45238F #5D2FC0 #7F57D6

Accessibility & contrast

On white

11.11
#45238F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#45238F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45238F
11.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45238F#FFFFFF#000000##FFFFFF
##45238F1.0011.111.8911.11
#FFFFFF11.111.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D92
Deuteranopia (green-blind)
#00398D
Tritanopia (blue-blind)
#2B4057
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #45238f;
/* rgb */ color: rgb(69, 35, 143);
/* oklch */ color: oklch(37.3% 0.165 290.4);
Tailwind
colors: {
  custom: {
    50: '#8162b1',
    500: '#45238f',
    950: '#000000',
  },
}
SCSS
$custom: #45238f;
$custom-light: #8162b1;
$custom-dark: #000000;
JSON
{
  "hex": "#45238f",
  "rgb": {
    "r": 69,
    "g": 35,
    "b": 143
  },
  "hsl": {
    "h": 258.889,
    "s": 60.674,
    "l": 34.902
  },
  "oklch": {
    "l": 0.37314,
    "c": 0.1651,
    "h": 290.4
  },
  "luminance": 0.0445
}

Semantic roles & 50–950 ramp

primary
#45238F
secondary
#9ABA54
accent
#E444B1
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #45238F

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

Preview Lab → · Contrast checker → · Palette generator →

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