#45279F#45279F

#45279F is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.4% C 0.180 H 286.2°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#45279F
RGBrgb(69, 39, 159)
HSLhsl(255, 61%, 39%)
HSVhsv(255, 75%, 62%)
CMYKcmyk(56.6%, 75.5%, 0%, 37.6%)
CIE-LABlab(27.35, 44.67, -60.01)
CIE-LCHlch(27.35, 74.81, 306.66°)
OKLaboklab(39.36% 0.0503 -0.1727)
OKLCHoklch(39.36% 0.18 286.2)
XYZxyz(9.4359, 5.2189, 33.3043)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45279F #819F27
analogous
#27459F #45279F #81279F
triadic
#45279F #9F4527 #279F45
tetradic
#45279F #9F2745 #819F27 #279F81
square
#45279F #9F2745 #819F27 #279F81
split-complementary
#45279F #9F8127 #459F27
monochromatic
#1A0F3D #301B6E #45279F #5C36CE #8367DA

Accessibility & contrast

On white

10.27
#45279F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#45279F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45279F
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45279F#FFFFFF#000000##FFFFFF
##45279F1.0010.272.0410.27
#FFFFFF10.271.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A2
Deuteranopia (green-blind)
#003D9D
Tritanopia (blue-blind)
#1B4861
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #45279f;
/* rgb */ color: rgb(69, 39, 159);
/* oklch */ color: oklch(39.4% 0.180 286.2);
Tailwind
colors: {
  custom: {
    50: '#8365bc',
    500: '#45279f',
    950: '#000000',
  },
}
SCSS
$custom: #45279f;
$custom-light: #8365bc;
$custom-dark: #000000;
JSON
{
  "hex": "#45279f",
  "rgb": {
    "r": 69,
    "g": 39,
    "b": 159
  },
  "hsl": {
    "h": 255,
    "s": 60.606,
    "l": 38.824
  },
  "oklch": {
    "l": 0.39356,
    "c": 0.17991,
    "h": 286.2
  },
  "luminance": 0.05219
}

Semantic roles & 50–950 ramp

primary
#45279F
secondary
#A8C062
accent
#E444BC
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #45279F

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

Preview Lab → · Contrast checker → · Palette generator →

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