#31094A#31094A

#31094A is a dark, moderate violet. Relative luminance 0.013; OKLCH L 25.2% C 0.112 H 307.9°. Best body text is #FFFFFF at 16.55:1 contrast (WCAG AA passes).

Color values

HEX#31094A
RGBrgb(49, 9, 74)
HSLhsl(277, 78%, 16%)
HSVhsv(277, 88%, 29%)
CMYKcmyk(33.8%, 87.8%, 0%, 71%)
CIE-LABlab(11.57, 31.81, -31.02)
CIE-LCHlch(11.57, 44.44, 315.72°)
OKLaboklab(25.21% 0.0688 -0.0882)
OKLCHoklch(25.21% 0.112 307.9)
XYZxyz(2.6001, 1.3428, 6.5994)
Luminance0.0134 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31094A #224A09
analogous
#11094A #31094A #4A0943
triadic
#31094A #4A3109 #094A31
tetradic
#31094A #4A1109 #224A09 #09434A
square
#31094A #4A1109 #224A09 #09434A
split-complementary
#31094A #434A09 #094A11
monochromatic
#12031B #12031B #31094A #551081 #7916B7

Accessibility & contrast

On white

16.55
#31094A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#31094A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31094A
16.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31094A#FFFFFF#000000##FFFFFF
##31094A1.0016.551.2716.55
#FFFFFF16.551.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.551.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #31094a;
/* rgb */ color: rgb(49, 9, 74);
/* oklch */ color: oklch(25.2% 0.112 307.9);
Tailwind
colors: {
  custom: {
    50: '#6d4e7d',
    500: '#31094a',
    950: '#000000',
  },
}
SCSS
$custom: #31094a;
$custom-light: #6d4e7d;
$custom-dark: #000000;
JSON
{
  "hex": "#31094a",
  "rgb": {
    "r": 49,
    "g": 9,
    "b": 74
  },
  "hsl": {
    "h": 276.923,
    "s": 78.313,
    "l": 16.275
  },
  "oklch": {
    "l": 0.25214,
    "c": 0.11184,
    "h": 307.9
  },
  "luminance": 0.01343
}

Semantic roles & 50–950 ramp

primary
#31094A
secondary
#4C8727
accent
#F5337E
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #31094A

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

Preview Lab → · Contrast checker → · Palette generator →

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