#31246F#31246F

#31246F is a dark, vivid violet. Relative luminance 0.031; OKLCH L 32.5% C 0.124 H 285.1°. Best body text is #FFFFFF at 13.02:1 contrast (WCAG AA passes).

Color values

HEX#31246F
RGBrgb(49, 36, 111)
HSLhsl(250, 51%, 29%)
HSVhsv(250, 68%, 44%)
CMYKcmyk(55.9%, 67.6%, 0%, 56.5%)
CIE-LABlab(20.29, 27.95, -41.58)
CIE-LCHlch(20.29, 50.10, 303.91°)
OKLaboklab(32.47% 0.0323 -0.1193)
OKLCHoklch(32.47% 0.124 285.1)
XYZxyz(4.7659, 3.0622, 15.3758)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31246F #626F24
analogous
#243D6F #31246F #57246F
triadic
#31246F #6F3124 #246F31
tetradic
#31246F #6F243D #626F24 #246F57
square
#31246F #6F243D #626F24 #246F57
split-complementary
#31246F #6F5724 #3D6F24
monochromatic
#0A0717 #1D1541 #31246F #45339D #5F49C4

Accessibility & contrast

On white

13.02
#31246F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#31246F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31246F
13.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31246F#FFFFFF#000000##FFFFFF
##31246F1.0013.021.6113.02
#FFFFFF13.021.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003371
Deuteranopia (green-blind)
#002F6D
Tritanopia (blue-blind)
#173646
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #31246f;
/* rgb */ color: rgb(49, 36, 111);
/* oklch */ color: oklch(32.5% 0.124 285.1);
Tailwind
colors: {
  custom: {
    50: '#705f99',
    500: '#31246f',
    950: '#000000',
  },
}
SCSS
$custom: #31246f;
$custom-light: #705f99;
$custom-dark: #000000;
JSON
{
  "hex": "#31246f",
  "rgb": {
    "r": 49,
    "g": 36,
    "b": 111
  },
  "hsl": {
    "h": 250.4,
    "s": 51.02,
    "l": 28.824
  },
  "oklch": {
    "l": 0.32472,
    "c": 0.12363,
    "h": 285.1
  },
  "luminance": 0.03062
}

Semantic roles & 50–950 ramp

primary
#31246F
secondary
#93A24D
accent
#DA4DC2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #31246F

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

Preview Lab → · Contrast checker → · Palette generator →

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