#31145F#31145F

#31145F is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.5% C 0.124 H 294.9°. Best body text is #FFFFFF at 15.04:1 contrast (WCAG AA passes).

Color values

HEX#31145F
RGBrgb(49, 20, 95)
HSLhsl(263, 65%, 23%)
HSVhsv(263, 79%, 37%)
CMYKcmyk(48.4%, 78.9%, 0%, 62.7%)
CIE-LABlab(15.38, 32.38, -39.10)
CIE-LCHlch(15.38, 50.76, 309.63°)
OKLaboklab(28.5% 0.052 -0.112)
OKLCHoklch(28.5% 0.124 294.9)
XYZxyz(3.5818, 1.9794, 11.0176)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31145F #425F14
analogous
#141D5F #31145F #56145F
triadic
#31145F #5F3114 #145F31
tetradic
#31145F #5F141D #425F14 #145F56
square
#31145F #5F141D #425F14 #145F56
split-complementary
#31145F #5F5614 #1D5F14
monochromatic
#0D0519 #17092C #31145F #4B1F92 #6529C4

Accessibility & contrast

On white

15.04
#31145F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#31145F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31145F
15.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31145F#FFFFFF#000000##FFFFFF
##31145F1.0015.041.4015.04
#FFFFFF15.041.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.041.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #31145f;
/* rgb */ color: rgb(49, 20, 95);
/* oklch */ color: oklch(28.5% 0.124 294.9);
Tailwind
colors: {
  custom: {
    50: '#6e558d',
    500: '#31145f',
    950: '#000000',
  },
}
SCSS
$custom: #31145f;
$custom-light: #6e558d;
$custom-dark: #000000;
JSON
{
  "hex": "#31145f",
  "rgb": {
    "r": 49,
    "g": 20,
    "b": 95
  },
  "hsl": {
    "h": 263.2,
    "s": 65.217,
    "l": 22.549
  },
  "oklch": {
    "l": 0.28502,
    "c": 0.12351,
    "h": 294.9
  },
  "luminance": 0.0198
}

Semantic roles & 50–950 ramp

primary
#31145F
secondary
#729738
accent
#E840A7
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #31145F

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

Preview Lab → · Contrast checker → · Palette generator →

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