#31265D#31265D

#31265D is a dark, moderate violet. Relative luminance 0.028; OKLCH L 31.3% C 0.094 H 289.0°. Best body text is #FFFFFF at 13.41:1 contrast (WCAG AA passes).

Color values

HEX#31265D
RGBrgb(49, 38, 93)
HSLhsl(252, 42%, 26%)
HSVhsv(252, 59%, 36%)
CMYKcmyk(47.3%, 59.1%, 0%, 63.5%)
CIE-LABlab(19.35, 20.61, -31.33)
CIE-LCHlch(19.35, 37.50, 303.34°)
OKLaboklab(31.32% 0.0307 -0.0892)
OKLCHoklch(31.32% 0.094 289)
XYZxyz(3.9350, 2.8294, 10.6926)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31265D #525D26
analogous
#26365D #31265D #4C265D
triadic
#31265D #5D3126 #265D31
tetradic
#31265D #5D2636 #525D26 #265D4C
square
#31265D #5D2636 #525D26 #265D4C
split-complementary
#31265D #5D4C26 #365D26
monochromatic
#0B0916 #1A1432 #31265D #483888 #5F4AB4

Accessibility & contrast

On white

13.41
#31265D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#31265D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31265D
13.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31265D#FFFFFF#000000##FFFFFF
##31265D1.0013.411.5713.41
#FFFFFF13.411.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09305F
Deuteranopia (green-blind)
#0A2E5C
Tritanopia (blue-blind)
#24323D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #31265d;
/* rgb */ color: rgb(49, 38, 93);
/* oklch */ color: oklch(31.3% 0.094 289.0);
Tailwind
colors: {
  custom: {
    50: '#6d608b',
    500: '#31265d',
    950: '#000000',
  },
}
SCSS
$custom: #31265d;
$custom-light: #6d608b;
$custom-dark: #000000;
JSON
{
  "hex": "#31265d",
  "rgb": {
    "r": 49,
    "g": 38,
    "b": 93
  },
  "hsl": {
    "h": 252,
    "s": 41.985,
    "l": 25.686
  },
  "oklch": {
    "l": 0.31322,
    "c": 0.09433,
    "h": 289
  },
  "luminance": 0.0283
}

Semantic roles & 50–950 ramp

primary
#31265D
secondary
#83904F
accent
#D256B9
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07050C
muted
#7A797D

Preview Lab

Preview with #31265D

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

Preview Lab → · Contrast checker → · Palette generator →

#31265D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva