#45286F#45286F

#45286F is a dark, moderate violet. Relative luminance 0.039; OKLCH L 35.3% C 0.118 H 299.0°. Best body text is #FFFFFF at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#45286F
RGBrgb(69, 40, 111)
HSLhsl(265, 47%, 30%)
HSVhsv(265, 64%, 44%)
CMYKcmyk(37.8%, 64%, 0%, 56.5%)
CIE-LABlab(23.44, 29.98, -36.37)
CIE-LCHlch(23.44, 47.14, 309.50°)
OKLaboklab(35.28% 0.0574 -0.1033)
OKLCHoklch(35.28% 0.118 299)
XYZxyz(6.0816, 3.9304, 15.4741)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45286F #526F28
analogous
#282F6F #45286F #69286F
triadic
#45286F #6F4528 #286F45
tetradic
#45286F #6F282F #526F28 #286F69
square
#45286F #6F282F #526F28 #286F69
split-complementary
#45286F #6F6928 #2F6F28
monochromatic
#0E0816 #291842 #45286F #61389C #7F51C0

Accessibility & contrast

On white

11.76
#45286F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#45286F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45286F
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45286F#FFFFFF#000000##FFFFFF
##45286F1.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003871
Deuteranopia (green-blind)
#0D376D
Tritanopia (blue-blind)
#3C3747
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #45286f;
/* rgb */ color: rgb(69, 40, 111);
/* oklch */ color: oklch(35.3% 0.118 299.0);
Tailwind
colors: {
  custom: {
    50: '#7c6399',
    500: '#45286f',
    950: '#000000',
  },
}
SCSS
$custom: #45286f;
$custom-light: #7c6399;
$custom-dark: #000000;
JSON
{
  "hex": "#45286f",
  "rgb": {
    "r": 69,
    "g": 40,
    "b": 111
  },
  "hsl": {
    "h": 264.507,
    "s": 47.02,
    "l": 29.608
  },
  "oklch": {
    "l": 0.35283,
    "c": 0.11818,
    "h": 299
  },
  "luminance": 0.0393
}

Semantic roles & 50–950 ramp

primary
#45286F
secondary
#81A151
accent
#D751A0
background
#F7F6F9
surface
#EEEBF2
border
#C9C6CC
text
#0A050E
muted
#7C7A7E

Preview Lab

Preview with #45286F

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

Preview Lab → · Contrast checker → · Palette generator →

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