#31246B#31246B

#31246B is a dark, moderate violet. Relative luminance 0.030; OKLCH L 32.1% C 0.118 H 286.1°. Best body text is #FFFFFF at 13.16:1 contrast (WCAG AA passes).

Color values

HEX#31246B
RGBrgb(49, 36, 107)
HSLhsl(251, 50%, 28%)
HSVhsv(251, 66%, 42%)
CMYKcmyk(54.2%, 66.4%, 0%, 58%)
CIE-LABlab(19.95, 26.61, -39.54)
CIE-LCHlch(19.95, 47.66, 303.94°)
OKLaboklab(32.12% 0.0327 -0.1134)
OKLCHoklch(32.12% 0.118 286.1)
XYZxyz(4.5506, 2.9760, 14.2417)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31246B #5E6B24
analogous
#243A6B #31246B #54246B
triadic
#31246B #6B3124 #246B31
tetradic
#31246B #6B243A #5E6B24 #246B54
square
#31246B #6B243A #5E6B24 #246B54
split-complementary
#31246B #6B5424 #3A6B24
monochromatic
#0A0817 #1C153D #31246B #463399 #5E48C1

Accessibility & contrast

On white

13.16
#31246B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31246B
13.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31246B#FFFFFF#000000##FFFFFF
##31246B1.0013.161.6013.16
#FFFFFF13.161.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326D
Deuteranopia (green-blind)
#002E6A
Tritanopia (blue-blind)
#1B3544
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #31246b;
/* rgb */ color: rgb(49, 36, 107);
/* oklch */ color: oklch(32.1% 0.118 286.1);
Tailwind
colors: {
  custom: {
    50: '#6f5f96',
    500: '#31246b',
    950: '#000000',
  },
}
SCSS
$custom: #31246b;
$custom-light: #6f5f96;
$custom-dark: #000000;
JSON
{
  "hex": "#31246b",
  "rgb": {
    "r": 49,
    "g": 36,
    "b": 107
  },
  "hsl": {
    "h": 250.986,
    "s": 49.65,
    "l": 28.039
  },
  "oklch": {
    "l": 0.32115,
    "c": 0.11799,
    "h": 286.1
  },
  "luminance": 0.02976
}

Semantic roles & 50–950 ramp

primary
#31246B
secondary
#8F9E4D
accent
#D94FC0
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040D
muted
#7B797E

Preview Lab

Preview with #31246B

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

Preview Lab → · Contrast checker → · Palette generator →

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