#45286B#45286B

#45286B is a dark, moderate violet. Relative luminance 0.038; OKLCH L 35.0% C 0.113 H 300.6°. Best body text is #FFFFFF at 11.87:1 contrast (WCAG AA passes).

Color values

HEX#45286B
RGBrgb(69, 40, 107)
HSLhsl(266, 46%, 29%)
HSVhsv(266, 63%, 42%)
CMYKcmyk(35.5%, 62.6%, 0%, 58%)
CIE-LABlab(23.15, 28.85, -34.26)
CIE-LCHlch(23.15, 44.78, 310.10°)
OKLaboklab(34.98% 0.0575 -0.0971)
OKLCHoklch(34.98% 0.113 300.6)
XYZxyz(5.8662, 3.8443, 14.3400)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45286B #4E6B28
analogous
#282D6B #45286B #67286B
triadic
#45286B #6B4528 #286B45
tetradic
#45286B #6B282D #4E6B28 #286B67
square
#45286B #6B282D #4E6B28 #286B67
split-complementary
#45286B #6B6728 #2D6B28
monochromatic
#0E0816 #28173E #45286B #623998 #7F50BE

Accessibility & contrast

On white

11.87
#45286B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#45286B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45286B
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45286B#FFFFFF#000000##FFFFFF
##45286B1.0011.871.7711.87
#FFFFFF11.871.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04376D
Deuteranopia (green-blind)
#133769
Tritanopia (blue-blind)
#3D3645
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #45286b;
/* rgb */ color: rgb(69, 40, 107);
/* oklch */ color: oklch(35.0% 0.113 300.6);
Tailwind
colors: {
  custom: {
    50: '#7c6396',
    500: '#45286b',
    950: '#000000',
  },
}
SCSS
$custom: #45286b;
$custom-light: #7c6396;
$custom-dark: #000000;
JSON
{
  "hex": "#45286b",
  "rgb": {
    "r": 69,
    "g": 40,
    "b": 107
  },
  "hsl": {
    "h": 265.97,
    "s": 45.578,
    "l": 28.824
  },
  "oklch": {
    "l": 0.34979,
    "c": 0.11286,
    "h": 300.6
  },
  "luminance": 0.03844
}

Semantic roles & 50–950 ramp

primary
#45286B
secondary
#7D9D51
accent
#D5539D
background
#F7F6F9
surface
#EEEBF2
border
#C9C6CC
text
#0A050D
muted
#7C7A7E

Preview Lab

Preview with #45286B

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

Preview Lab → · Contrast checker → · Palette generator →

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