#31145A#31145A

#31145A is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.0% C 0.117 H 297.0°. Best body text is #FFFFFF at 15.24:1 contrast (WCAG AA passes).

Color values

HEX#31145A
RGBrgb(49, 20, 90)
HSLhsl(265, 64%, 22%)
HSVhsv(265, 78%, 35%)
CMYKcmyk(45.6%, 77.8%, 0%, 64.7%)
CIE-LABlab(14.91, 30.91, -36.52)
CIE-LCHlch(14.91, 47.85, 310.24°)
OKLaboklab(28.02% 0.0533 -0.1044)
OKLCHoklch(28.02% 0.117 297)
XYZxyz(3.3618, 1.8914, 9.8588)
Luminance0.0189 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31145A #3D5A14
analogous
#141A5A #31145A #54145A
triadic
#31145A #5A3114 #145A31
tetradic
#31145A #5A141A #3D5A14 #145A54
square
#31145A #5A141A #3D5A14 #145A54
split-complementary
#31145A #5A5414 #1A5A14
monochromatic
#0E0619 #160928 #31145A #4C1F8C #682ABE

Accessibility & contrast

On white

15.24
#31145A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31145A
15.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31145A#FFFFFF#000000##FFFFFF
##31145A1.0015.241.3815.24
#FFFFFF15.241.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265C
Deuteranopia (green-blind)
#002559
Tritanopia (blue-blind)
#262635
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #31145a;
/* rgb */ color: rgb(49, 20, 90);
/* oklch */ color: oklch(28.0% 0.117 297.0);
Tailwind
colors: {
  custom: {
    50: '#6e5489',
    500: '#31145a',
    950: '#000000',
  },
}
SCSS
$custom: #31145a;
$custom-light: #6e5489;
$custom-dark: #000000;
JSON
{
  "hex": "#31145a",
  "rgb": {
    "r": 49,
    "g": 20,
    "b": 90
  },
  "hsl": {
    "h": 264.857,
    "s": 63.636,
    "l": 21.569
  },
  "oklch": {
    "l": 0.28022,
    "c": 0.11726,
    "h": 297
  },
  "luminance": 0.01891
}

Semantic roles & 50–950 ramp

primary
#31145A
secondary
#6D9238
accent
#E741A2
background
#F6F5F8
surface
#ECE8F0
border
#C7C4CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #31145A

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

Preview Lab → · Contrast checker → · Palette generator →

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