#31084B#31084B

#31084B is a dark, moderate violet. Relative luminance 0.013; OKLCH L 25.2% C 0.114 H 307.5°. Best body text is #FFFFFF at 16.57:1 contrast (WCAG AA passes).

Color values

HEX#31084B
RGBrgb(49, 8, 75)
HSLhsl(277, 81%, 16%)
HSVhsv(277, 89%, 29%)
CMYKcmyk(34.7%, 89.3%, 0%, 70.6%)
CIE-LABlab(11.52, 32.50, -31.81)
CIE-LCHlch(11.52, 45.47, 315.61°)
OKLaboklab(25.2% 0.0694 -0.0905)
OKLCHoklch(25.2% 0.114 307.5)
XYZxyz(2.6232, 1.3347, 6.7747)
Luminance0.0134 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31084B #224B08
analogous
#0F084B #31084B #4B0844
triadic
#31084B #4B3108 #084B31
tetradic
#31084B #4B0F08 #224B08 #08444B
square
#31084B #4B0F08 #224B08 #08444B
split-complementary
#31084B #444B08 #084B0F
monochromatic
#12031C #12031C #31084B #550E82 #7914BA

Accessibility & contrast

On white

16.57
#31084B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#31084B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31084B
16.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31084B#FFFFFF#000000##FFFFFF
##31084B1.0016.571.2716.57
#FFFFFF16.571.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D4D
Deuteranopia (green-blind)
#001F4A
Tritanopia (blue-blind)
#2D1A2A
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #31084b;
/* rgb */ color: rgb(49, 8, 75);
/* oklch */ color: oklch(25.2% 0.114 307.5);
Tailwind
colors: {
  custom: {
    50: '#6d4e7e',
    500: '#31084b',
    950: '#000000',
  },
}
SCSS
$custom: #31084b;
$custom-light: #6d4e7e;
$custom-dark: #000000;
JSON
{
  "hex": "#31084b",
  "rgb": {
    "r": 49,
    "g": 8,
    "b": 75
  },
  "hsl": {
    "h": 276.716,
    "s": 80.723,
    "l": 16.275
  },
  "oklch": {
    "l": 0.25204,
    "c": 0.11408,
    "h": 307.5
  },
  "luminance": 0.01335
}

Semantic roles & 50–950 ramp

primary
#31084B
secondary
#4C8926
accent
#F7317E
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #31084B

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

Preview Lab → · Contrast checker → · Palette generator →

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