#45237F#45237F

#45237F is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.9% C 0.146 H 294.9°. Best body text is #FFFFFF at 11.67:1 contrast (WCAG AA passes).

Color values

HEX#45237F
RGBrgb(69, 35, 127)
HSLhsl(262, 57%, 32%)
HSVhsv(262, 72%, 50%)
CMYKcmyk(45.7%, 72.4%, 0%, 50.2%)
CIE-LABlab(23.67, 37.44, -46.20)
CIE-LCHlch(23.67, 59.47, 309.02°)
OKLaboklab(35.85% 0.0613 -0.1322)
OKLCHoklch(35.85% 0.146 294.9)
XYZxyz(6.8850, 3.9994, 20.4838)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45237F #5D7F23
analogous
#232F7F #45237F #73237F
triadic
#45237F #7F4523 #237F45
tetradic
#45237F #7F232F #5D7F23 #237F73
square
#45237F #7F232F #5D7F23 #237F73
split-complementary
#45237F #7F7323 #2F7F23
monochromatic
#11091F #2B164F #45237F #5F30AF #7D4ECE

Accessibility & contrast

On white

11.67
#45237F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#45237F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45237F
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45237F#FFFFFF#000000##FFFFFF
##45237F1.0011.671.8011.67
#FFFFFF11.671.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003982
Deuteranopia (green-blind)
#00377D
Tritanopia (blue-blind)
#353A4E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #45237f;
/* rgb */ color: rgb(69, 35, 127);
/* oklch */ color: oklch(35.9% 0.146 294.9);
Tailwind
colors: {
  custom: {
    50: '#7e61a5',
    500: '#45237f',
    950: '#000000',
  },
}
SCSS
$custom: #45237f;
$custom-light: #7e61a5;
$custom-dark: #000000;
JSON
{
  "hex": "#45237f",
  "rgb": {
    "r": 69,
    "g": 35,
    "b": 127
  },
  "hsl": {
    "h": 262.174,
    "s": 56.79,
    "l": 31.765
  },
  "oklch": {
    "l": 0.35851,
    "c": 0.14573,
    "h": 294.9
  },
  "luminance": 0.04
}

Semantic roles & 50–950 ramp

primary
#45237F
secondary
#8CB14C
accent
#E048A8
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #45237F

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

Preview Lab → · Contrast checker → · Palette generator →

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