#31145C#31145C

#31145C is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.2% C 0.120 H 296.2°. Best body text is #FFFFFF at 15.16:1 contrast (WCAG AA passes).

Color values

HEX#31145C
RGBrgb(49, 20, 92)
HSLhsl(264, 64%, 22%)
HSVhsv(264, 78%, 36%)
CMYKcmyk(46.7%, 78.3%, 0%, 63.9%)
CIE-LABlab(15.09, 31.49, -37.56)
CIE-LCHlch(15.09, 49.02, 309.98°)
OKLaboklab(28.21% 0.0528 -0.1075)
OKLCHoklch(28.21% 0.12 296.2)
XYZxyz(3.4480, 1.9259, 10.3132)
Luminance0.0193 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31145C #3F5C14
analogous
#141B5C #31145C #55145C
triadic
#31145C #5C3114 #145C31
tetradic
#31145C #5C141B #3F5C14 #145C55
square
#31145C #5C141B #3F5C14 #145C55
split-complementary
#31145C #5C5514 #1B5C14
monochromatic
#0D0519 #16092A #31145C #4C1F8E #672AC1

Accessibility & contrast

On white

15.16
#31145C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#31145C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31145C
15.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31145C#FFFFFF#000000##FFFFFF
##31145C1.0015.161.3915.16
#FFFFFF15.161.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265E
Deuteranopia (green-blind)
#00255B
Tritanopia (blue-blind)
#252736
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #31145c;
/* rgb */ color: rgb(49, 20, 92);
/* oklch */ color: oklch(28.2% 0.120 296.2);
Tailwind
colors: {
  custom: {
    50: '#6e558b',
    500: '#31145c',
    950: '#000000',
  },
}
SCSS
$custom: #31145c;
$custom-light: #6e558b;
$custom-dark: #000000;
JSON
{
  "hex": "#31145c",
  "rgb": {
    "r": 49,
    "g": 20,
    "b": 92
  },
  "hsl": {
    "h": 264.167,
    "s": 64.286,
    "l": 21.961
  },
  "oklch": {
    "l": 0.28212,
    "c": 0.11976,
    "h": 296.2
  },
  "luminance": 0.01926
}

Semantic roles & 50–950 ramp

primary
#31145C
secondary
#6F9438
accent
#E741A4
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #31145C

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

Preview Lab → · Contrast checker → · Palette generator →

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