#31135F#31135F

#31135F is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.4% C 0.125 H 295.2°. Best body text is #FFFFFF at 15.12:1 contrast (WCAG AA passes).

Color values

HEX#31135F
RGBrgb(49, 19, 95)
HSLhsl(264, 67%, 22%)
HSVhsv(264, 80%, 37%)
CMYKcmyk(48.4%, 80%, 0%, 62.7%)
CIE-LABlab(15.19, 32.90, -39.40)
CIE-LCHlch(15.19, 51.33, 309.87°)
OKLaboklab(28.37% 0.053 -0.1129)
OKLCHoklch(28.37% 0.125 295.2)
XYZxyz(3.5645, 1.9448, 11.0118)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31135F #415F13
analogous
#131B5F #31135F #57135F
triadic
#31135F #5F3113 #135F31
tetradic
#31135F #5F131B #415F13 #135F57
square
#31135F #5F131B #415F13 #135F57
split-complementary
#31135F #5F5713 #1B5F13
monochromatic
#0D051A #17092C #31135F #4B1D92 #6627C5

Accessibility & contrast

On white

15.12
#31135F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#31135F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31135F
15.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31135F#FFFFFF#000000##FFFFFF
##31135F1.0015.121.3915.12
#FFFFFF15.121.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002761
Deuteranopia (green-blind)
#00255E
Tritanopia (blue-blind)
#242738
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #31135f;
/* rgb */ color: rgb(49, 19, 95);
/* oklch */ color: oklch(28.4% 0.125 295.2);
Tailwind
colors: {
  custom: {
    50: '#6f548d',
    500: '#31135f',
    950: '#000000',
  },
}
SCSS
$custom: #31135f;
$custom-light: #6f548d;
$custom-dark: #000000;
JSON
{
  "hex": "#31135f",
  "rgb": {
    "r": 49,
    "g": 19,
    "b": 95
  },
  "hsl": {
    "h": 263.684,
    "s": 66.667,
    "l": 22.353
  },
  "oklch": {
    "l": 0.28372,
    "c": 0.12471,
    "h": 295.2
  },
  "luminance": 0.01945
}

Semantic roles & 50–950 ramp

primary
#31135F
secondary
#719737
accent
#EA3EA6
background
#F6F5F8
surface
#ECE8F0
border
#C7C4CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #31135F

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

Preview Lab → · Contrast checker → · Palette generator →

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