#6031AF#6031AF

#6031AF is a dark, vivid violet. Relative luminance 0.078; OKLCH L 44.8% C 0.187 H 294.7°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#6031AF
RGBrgb(96, 49, 175)
HSLhsl(262, 56%, 44%)
HSVhsv(262, 72%, 69%)
CMYKcmyk(45.1%, 72%, 0%, 31.4%)
CIE-LABlab(33.52, 48.46, -59.44)
CIE-LCHlch(33.52, 76.69, 309.19°)
OKLaboklab(44.84% 0.0782 -0.1702)
OKLCHoklch(44.84% 0.187 294.7)
XYZxyz(13.6580, 7.7782, 41.3309)
Luminance0.0778 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6031AF #80AF31
analogous
#3141AF #6031AF #9F31AF
triadic
#6031AF #AF6031 #31AF60
tetradic
#6031AF #AF3141 #80AF31 #31AF9F
square
#6031AF #AF3141 #80AF31 #31AF9F
split-complementary
#6031AF #AF9F31 #41AF31
monochromatic
#2C164F #46247F #6031AF #7F4FCE #A27FDB

Accessibility & contrast

On white

8.22
#6031AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#6031AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6031AF
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6031AF#FFFFFF#000000##FFFFFF
##6031AF1.008.222.568.22
#FFFFFF8.221.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B3
Deuteranopia (green-blind)
#004DAD
Tritanopia (blue-blind)
#4A516D
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #6031af;
/* rgb */ color: rgb(96, 49, 175);
/* oklch */ color: oklch(44.8% 0.187 294.7);
Tailwind
colors: {
  custom: {
    50: '#946dc8',
    500: '#6031af',
    950: '#000000',
  },
}
SCSS
$custom: #6031af;
$custom-light: #946dc8;
$custom-dark: #000000;
JSON
{
  "hex": "#6031af",
  "rgb": {
    "r": 96,
    "g": 49,
    "b": 175
  },
  "hsl": {
    "h": 262.381,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.44839,
    "c": 0.18731,
    "h": 294.7
  },
  "luminance": 0.07779
}

Semantic roles & 50–950 ramp

primary
#6031AF
secondary
#A8C478
accent
#E048A7
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #6031AF

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

Preview Lab → · Contrast checker → · Palette generator →

#6031AF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva