#31145D#31145D

#31145D is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.3% C 0.121 H 295.7°. Best body text is #FFFFFF at 15.12:1 contrast (WCAG AA passes).

Color values

HEX#31145D
RGBrgb(49, 20, 93)
HSLhsl(264, 65%, 22%)
HSVhsv(264, 78%, 36%)
CMYKcmyk(47.3%, 78.5%, 0%, 63.5%)
CIE-LABlab(15.19, 31.79, -38.07)
CIE-LCHlch(15.19, 49.60, 309.86°)
OKLaboklab(28.31% 0.0526 -0.109)
OKLCHoklch(28.31% 0.121 295.7)
XYZxyz(3.4920, 1.9435, 10.5450)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31145D #405D14
analogous
#141B5D #31145D #56145D
triadic
#31145D #5D3114 #145D31
tetradic
#31145D #5D141B #405D14 #145D56
square
#31145D #5D141B #405D14 #145D56
split-complementary
#31145D #5D5614 #1B5D14
monochromatic
#0D0519 #16092B #31145D #4C1F8F #662AC2

Accessibility & contrast

On white

15.12
#31145D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31145D
15.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31145D#FFFFFF#000000##FFFFFF
##31145D1.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)
#00275F
Deuteranopia (green-blind)
#00255C
Tritanopia (blue-blind)
#252737
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #31145d;
/* rgb */ color: rgb(49, 20, 93);
/* oklch */ color: oklch(28.3% 0.121 295.7);
Tailwind
colors: {
  custom: {
    50: '#6e558c',
    500: '#31145d',
    950: '#000000',
  },
}
SCSS
$custom: #31145d;
$custom-light: #6e558c;
$custom-dark: #000000;
JSON
{
  "hex": "#31145d",
  "rgb": {
    "r": 49,
    "g": 20,
    "b": 93
  },
  "hsl": {
    "h": 263.836,
    "s": 64.602,
    "l": 22.157
  },
  "oklch": {
    "l": 0.28308,
    "c": 0.12101,
    "h": 295.7
  },
  "luminance": 0.01944
}

Semantic roles & 50–950 ramp

primary
#31145D
secondary
#709538
accent
#E840A5
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #31145D

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

Preview Lab → · Contrast checker → · Palette generator →

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