#45238D#45238D

#45238D is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.1% C 0.163 H 291.0°. Best body text is #FFFFFF at 11.18:1 contrast (WCAG AA passes).

Color values

HEX#45238D
RGBrgb(69, 35, 141)
HSLhsl(259, 60%, 35%)
HSVhsv(259, 75%, 55%)
CMYKcmyk(51.1%, 75.2%, 0%, 44.7%)
CIE-LABlab(24.92, 41.47, -52.93)
CIE-LCHlch(24.92, 67.24, 308.08°)
OKLaboklab(37.13% 0.0582 -0.152)
OKLCHoklch(37.13% 0.163 291)
XYZxyz(7.8616, 4.3900, 25.6273)
Luminance0.0439 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45238D #6B8D23
analogous
#23368D #45238D #7A238D
triadic
#45238D #8D4523 #238D45
tetradic
#45238D #8D2336 #6B8D23 #238D7A
square
#45238D #8D2336 #6B8D23 #238D7A
split-complementary
#45238D #8D7A23 #368D23
monochromatic
#150B2B #2D175C #45238D #5D2FBE #7E55D5

Accessibility & contrast

On white

11.18
#45238D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#45238D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45238D
11.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45238D#FFFFFF#000000##FFFFFF
##45238D1.0011.181.8811.18
#FFFFFF11.181.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D90
Deuteranopia (green-blind)
#00398B
Tritanopia (blue-blind)
#2D3F56
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #45238d;
/* rgb */ color: rgb(69, 35, 141);
/* oklch */ color: oklch(37.1% 0.163 291.0);
Tailwind
colors: {
  custom: {
    50: '#8061af',
    500: '#45238d',
    950: '#000000',
  },
}
SCSS
$custom: #45238d;
$custom-light: #8061af;
$custom-dark: #000000;
JSON
{
  "hex": "#45238d",
  "rgb": {
    "r": 69,
    "g": 35,
    "b": 141
  },
  "hsl": {
    "h": 259.245,
    "s": 60.227,
    "l": 34.51
  },
  "oklch": {
    "l": 0.37125,
    "c": 0.16272,
    "h": 291
  },
  "luminance": 0.0439
}

Semantic roles & 50–950 ramp

primary
#45238D
secondary
#98B953
accent
#E344B0
background
#F8F5FA
surface
#EFEAF5
border
#CAC6CF
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #45238D

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

Preview Lab → · Contrast checker → · Palette generator →

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