#45238B#45238B

#45238B is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.9% C 0.160 H 291.5°. Best body text is #FFFFFF at 11.25:1 contrast (WCAG AA passes).

Color values

HEX#45238B
RGBrgb(69, 35, 139)
HSLhsl(260, 60%, 34%)
HSVhsv(260, 75%, 55%)
CMYKcmyk(50.4%, 74.8%, 0%, 45.5%)
CIE-LABlab(24.74, 40.89, -51.99)
CIE-LCHlch(24.74, 66.14, 308.19°)
OKLaboklab(36.94% 0.0587 -0.1492)
OKLCHoklch(36.94% 0.16 291.5)
XYZxyz(7.7142, 4.3311, 24.8506)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45238B #698B23
analogous
#23358B #45238B #79238B
triadic
#45238B #8B4523 #238B45
tetradic
#45238B #8B2335 #698B23 #238B79
square
#45238B #8B2335 #698B23 #238B79
split-complementary
#45238B #8B7923 #358B23
monochromatic
#140A29 #2D175A #45238B #5D2FBC #7E54D4

Accessibility & contrast

On white

11.25
#45238B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#45238B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45238B
11.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45238B#FFFFFF#000000##FFFFFF
##45238B1.0011.251.8711.25
#FFFFFF11.251.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8E
Deuteranopia (green-blind)
#003889
Tritanopia (blue-blind)
#2E3F55
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #45238b;
/* rgb */ color: rgb(69, 35, 139);
/* oklch */ color: oklch(36.9% 0.160 291.5);
Tailwind
colors: {
  custom: {
    50: '#8061ae',
    500: '#45238b',
    950: '#000000',
  },
}
SCSS
$custom: #45238b;
$custom-light: #8061ae;
$custom-dark: #000000;
JSON
{
  "hex": "#45238b",
  "rgb": {
    "r": 69,
    "g": 35,
    "b": 139
  },
  "hsl": {
    "h": 259.615,
    "s": 59.77,
    "l": 34.118
  },
  "oklch": {
    "l": 0.36939,
    "c": 0.16031,
    "h": 291.5
  },
  "luminance": 0.04331
}

Semantic roles & 50–950 ramp

primary
#45238B
secondary
#97B852
accent
#E345AF
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #45238B

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

Preview Lab → · Contrast checker → · Palette generator →

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