#31146B#31146B

#31146B is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.7% C 0.138 H 290.5°. Best body text is #FFFFFF at 14.55:1 contrast (WCAG AA passes).

Color values

HEX#31146B
RGBrgb(49, 20, 107)
HSLhsl(260, 69%, 25%)
HSVhsv(260, 81%, 42%)
CMYKcmyk(54.2%, 81.3%, 0%, 58%)
CIE-LABlab(16.58, 35.93, -45.06)
CIE-LCHlch(16.58, 57.63, 308.57°)
OKLaboklab(29.71% 0.0485 -0.1295)
OKLCHoklch(29.71% 0.138 290.5)
XYZxyz(4.1699, 2.2146, 14.1148)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31146B #4E6B14
analogous
#14236B #31146B #5D146B
triadic
#31146B #6B3114 #146B31
tetradic
#31146B #6B1423 #4E6B14 #146B5D
square
#31146B #6B1423 #4E6B14 #146B5D
split-complementary
#31146B #6B5D14 #236B14
monochromatic
#0C051A #190A37 #31146B #491E9F #6027D2

Accessibility & contrast

On white

14.55
#31146B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#31146B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31146B
14.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31146B#FFFFFF#000000##FFFFFF
##31146B1.0014.551.4414.55
#FFFFFF14.551.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6D
Deuteranopia (green-blind)
#002769
Tritanopia (blue-blind)
#1C2D3F
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #31146b;
/* rgb */ color: rgb(49, 20, 107);
/* oklch */ color: oklch(29.7% 0.138 290.5);
Tailwind
colors: {
  custom: {
    50: '#705596',
    500: '#31146b',
    950: '#000000',
  },
}
SCSS
$custom: #31146b;
$custom-light: #705596;
$custom-dark: #000000;
JSON
{
  "hex": "#31146b",
  "rgb": {
    "r": 49,
    "g": 20,
    "b": 107
  },
  "hsl": {
    "h": 260,
    "s": 68.504,
    "l": 24.902
  },
  "oklch": {
    "l": 0.29708,
    "c": 0.13827,
    "h": 290.5
  },
  "luminance": 0.02215
}

Semantic roles & 50–950 ramp

primary
#31146B
secondary
#7FA239
accent
#EB3CB1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #31146B

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

Preview Lab → · Contrast checker → · Palette generator →

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