#31145B#31145B

#31145B is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.1% C 0.119 H 296.6°. Best body text is #FFFFFF at 15.20:1 contrast (WCAG AA passes).

Color values

HEX#31145B
RGBrgb(49, 20, 91)
HSLhsl(265, 64%, 22%)
HSVhsv(265, 78%, 36%)
CMYKcmyk(46.2%, 78%, 0%, 64.3%)
CIE-LABlab(15.00, 31.20, -37.04)
CIE-LCHlch(15.00, 48.43, 310.11°)
OKLaboklab(28.12% 0.0531 -0.106)
OKLCHoklch(28.12% 0.119 296.6)
XYZxyz(3.4046, 1.9085, 10.0845)
Luminance0.0191 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31145B #3E5B14
analogous
#141B5B #31145B #55145B
triadic
#31145B #5B3114 #145B31
tetradic
#31145B #5B141B #3E5B14 #145B55
square
#31145B #5B141B #3E5B14 #145B55
split-complementary
#31145B #5B5514 #1B5B14
monochromatic
#0E0619 #160929 #31145B #4C1F8D #672ABF

Accessibility & contrast

On white

15.20
#31145B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#31145B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31145B
15.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31145B#FFFFFF#000000##FFFFFF
##31145B1.0015.201.3815.20
#FFFFFF15.201.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265D
Deuteranopia (green-blind)
#00255A
Tritanopia (blue-blind)
#262636
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #31145b;
/* rgb */ color: rgb(49, 20, 91);
/* oklch */ color: oklch(28.1% 0.119 296.6);
Tailwind
colors: {
  custom: {
    50: '#6e548a',
    500: '#31145b',
    950: '#000000',
  },
}
SCSS
$custom: #31145b;
$custom-light: #6e548a;
$custom-dark: #000000;
JSON
{
  "hex": "#31145b",
  "rgb": {
    "r": 49,
    "g": 20,
    "b": 91
  },
  "hsl": {
    "h": 264.507,
    "s": 63.964,
    "l": 21.765
  },
  "oklch": {
    "l": 0.28117,
    "c": 0.11851,
    "h": 296.6
  },
  "luminance": 0.01909
}

Semantic roles & 50–950 ramp

primary
#31145B
secondary
#6E9338
accent
#E741A3
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #31145B

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

Preview Lab → · Contrast checker → · Palette generator →

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