#31246A#31246A

#31246A is a dark, moderate violet. Relative luminance 0.030; OKLCH L 32.0% C 0.117 H 286.3°. Best body text is #FFFFFF at 13.20:1 contrast (WCAG AA passes).

Color values

HEX#31246A
RGBrgb(49, 36, 106)
HSLhsl(251, 49%, 28%)
HSVhsv(251, 66%, 42%)
CMYKcmyk(53.8%, 66%, 0%, 58.4%)
CIE-LABlab(19.86, 26.27, -39.03)
CIE-LCHlch(19.86, 47.05, 303.95°)
OKLaboklab(32.03% 0.0328 -0.1119)
OKLCHoklch(32.03% 0.117 286.3)
XYZxyz(4.4982, 2.9551, 13.9662)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31246A #5D6A24
analogous
#243A6A #31246A #54246A
triadic
#31246A #6A3124 #246A31
tetradic
#31246A #6A243A #5D6A24 #246A54
square
#31246A #6A243A #5D6A24 #246A54
split-complementary
#31246A #6A5424 #3A6A24
monochromatic
#0B0817 #1C143C #31246A #463498 #5E48C1

Accessibility & contrast

On white

13.20
#31246A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#31246A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31246A
13.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31246A#FFFFFF#000000##FFFFFF
##31246A1.0013.201.5913.20
#FFFFFF13.201.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326C
Deuteranopia (green-blind)
#002E69
Tritanopia (blue-blind)
#1C3543
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #31246a;
/* rgb */ color: rgb(49, 36, 106);
/* oklch */ color: oklch(32.0% 0.117 286.3);
Tailwind
colors: {
  custom: {
    50: '#6f5f95',
    500: '#31246a',
    950: '#000000',
  },
}
SCSS
$custom: #31246a;
$custom-light: #6f5f95;
$custom-dark: #000000;
JSON
{
  "hex": "#31246a",
  "rgb": {
    "r": 49,
    "g": 36,
    "b": 106
  },
  "hsl": {
    "h": 251.143,
    "s": 49.296,
    "l": 27.843
  },
  "oklch": {
    "l": 0.32027,
    "c": 0.11656,
    "h": 286.3
  },
  "luminance": 0.02955
}

Semantic roles & 50–950 ramp

primary
#31246A
secondary
#8E9D4D
accent
#D94FBF
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040D
muted
#7B797E

Preview Lab

Preview with #31246A

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

Preview Lab → · Contrast checker → · Palette generator →

#31246A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva