#45279B#45279B

#45279B is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.0% C 0.175 H 287.0°. Best body text is #FFFFFF at 10.41:1 contrast (WCAG AA passes).

Color values

HEX#45279B
RGBrgb(69, 39, 155)
HSLhsl(256, 60%, 38%)
HSVhsv(256, 75%, 61%)
CMYKcmyk(55.5%, 74.8%, 0%, 39.2%)
CIE-LABlab(26.97, 43.48, -58.20)
CIE-LCHlch(26.97, 72.65, 306.76°)
OKLaboklab(38.97% 0.0513 -0.1674)
OKLCHoklch(38.97% 0.175 287)
XYZxyz(9.0944, 5.0823, 31.5058)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45279B #7D9B27
analogous
#27439B #45279B #7F279B
triadic
#45279B #9B4527 #279B45
tetradic
#45279B #9B2743 #7D9B27 #279B7F
square
#45279B #9B2743 #7D9B27 #279B7F
split-complementary
#45279B #9B7F27 #439B27
monochromatic
#190E39 #2F1B6A #45279B #5B33CC #8264D8

Accessibility & contrast

On white

10.41
#45279B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#45279B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45279B
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45279B#FFFFFF#000000##FFFFFF
##45279B1.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429E
Deuteranopia (green-blind)
#003C99
Tritanopia (blue-blind)
#20475F
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #45279b;
/* rgb */ color: rgb(69, 39, 155);
/* oklch */ color: oklch(39.0% 0.175 287.0);
Tailwind
colors: {
  custom: {
    50: '#8264ba',
    500: '#45279b',
    950: '#000000',
  },
}
SCSS
$custom: #45279b;
$custom-light: #8264ba;
$custom-dark: #000000;
JSON
{
  "hex": "#45279b",
  "rgb": {
    "r": 69,
    "g": 39,
    "b": 155
  },
  "hsl": {
    "h": 255.517,
    "s": 59.794,
    "l": 38.039
  },
  "oklch": {
    "l": 0.38971,
    "c": 0.17511,
    "h": 287
  },
  "luminance": 0.05083
}

Semantic roles & 50–950 ramp

primary
#45279B
secondary
#A6BE60
accent
#E345BA
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #45279B

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

Preview Lab → · Contrast checker → · Palette generator →

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