#31246C#31246C

#31246C is a dark, moderate violet. Relative luminance 0.030; OKLCH L 32.2% C 0.119 H 285.8°. Best body text is #FFFFFF at 13.13:1 contrast (WCAG AA passes).

Color values

HEX#31246C
RGBrgb(49, 36, 108)
HSLhsl(251, 50%, 28%)
HSVhsv(251, 67%, 42%)
CMYKcmyk(54.6%, 66.7%, 0%, 57.6%)
CIE-LABlab(20.03, 26.94, -40.06)
CIE-LCHlch(20.03, 48.27, 303.93°)
OKLaboklab(32.2% 0.0326 -0.1149)
OKLCHoklch(32.2% 0.119 285.8)
XYZxyz(4.6035, 2.9972, 14.5204)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31246C #5F6C24
analogous
#243B6C #31246C #55246C
triadic
#31246C #6C3124 #246C31
tetradic
#31246C #6C243B #5F6C24 #246C55
square
#31246C #6C243B #5F6C24 #246C55
split-complementary
#31246C #6C5524 #3B6C24
monochromatic
#0A0817 #1C153E #31246C #46339A #5E48C2

Accessibility & contrast

On white

13.13
#31246C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#31246C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31246C
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31246C#FFFFFF#000000##FFFFFF
##31246C1.0013.131.6013.13
#FFFFFF13.131.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326E
Deuteranopia (green-blind)
#002E6B
Tritanopia (blue-blind)
#1A3544
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #31246c;
/* rgb */ color: rgb(49, 36, 108);
/* oklch */ color: oklch(32.2% 0.119 285.8);
Tailwind
colors: {
  custom: {
    50: '#6f5f97',
    500: '#31246c',
    950: '#000000',
  },
}
SCSS
$custom: #31246c;
$custom-light: #6f5f97;
$custom-dark: #000000;
JSON
{
  "hex": "#31246c",
  "rgb": {
    "r": 49,
    "g": 36,
    "b": 108
  },
  "hsl": {
    "h": 250.833,
    "s": 50,
    "l": 28.235
  },
  "oklch": {
    "l": 0.32203,
    "c": 0.11941,
    "h": 285.8
  },
  "luminance": 0.02997
}

Semantic roles & 50–950 ramp

primary
#31246C
secondary
#909F4D
accent
#DA4EC0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040D
muted
#7B797E

Preview Lab

Preview with #31246C

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

Preview Lab → · Contrast checker → · Palette generator →

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