#5F30AB#5F30AB

#5F30AB is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.3% C 0.184 H 295.3°. Best body text is #FFFFFF at 8.41:1 contrast (WCAG AA passes).

Color values

HEX#5F30AB
RGBrgb(95, 48, 171)
HSLhsl(263, 56%, 43%)
HSVhsv(263, 72%, 67%)
CMYKcmyk(44.4%, 71.9%, 0%, 32.9%)
CIE-LABlab(32.89, 47.70, -58.07)
CIE-LCHlch(32.89, 75.15, 309.40°)
OKLaboklab(44.27% 0.0785 -0.1662)
OKLCHoklch(44.27% 0.184 295.3)
XYZxyz(13.1250, 7.4868, 39.2737)
Luminance0.0749 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F30AB #7CAB30
analogous
#303EAB #5F30AB #9C30AB
triadic
#5F30AB #AB5F30 #30AB5F
tetradic
#5F30AB #AB303E #7CAB30 #30AB9C
square
#5F30AB #AB303E #7CAB30 #30AB9C
split-complementary
#5F30AB #AB9C30 #3EAB30
monochromatic
#2A154B #44237B #5F30AB #7D4CCD #A07BDA

Accessibility & contrast

On white

8.41
#5F30AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#5F30AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F30AB
8.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F30AB#FFFFFF#000000##FFFFFF
##5F30AB1.008.412.508.41
#FFFFFF8.411.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAF
Deuteranopia (green-blind)
#004BA9
Tritanopia (blue-blind)
#4A4F6A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5f30ab;
/* rgb */ color: rgb(95, 48, 171);
/* oklch */ color: oklch(44.3% 0.184 295.3);
Tailwind
colors: {
  custom: {
    50: '#936cc5',
    500: '#5f30ab',
    950: '#000000',
  },
}
SCSS
$custom: #5f30ab;
$custom-light: #936cc5;
$custom-dark: #000000;
JSON
{
  "hex": "#5f30ab",
  "rgb": {
    "r": 95,
    "g": 48,
    "b": 171
  },
  "hsl": {
    "h": 262.927,
    "s": 56.164,
    "l": 42.941
  },
  "oklch": {
    "l": 0.44265,
    "c": 0.18383,
    "h": 295.3
  },
  "luminance": 0.07487
}

Semantic roles & 50–950 ramp

primary
#5F30AB
secondary
#A5C374
accent
#DF48A6
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5F30AB

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

Preview Lab → · Contrast checker → · Palette generator →

#5F30AB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva