#31167F#31167F

#31167F is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.1% C 0.160 H 284.6°. Best body text is #FFFFFF at 13.53:1 contrast (WCAG AA passes).

Color values

HEX#31167F
RGBrgb(49, 22, 127)
HSLhsl(255, 70%, 29%)
HSVhsv(255, 83%, 50%)
CMYKcmyk(61.4%, 82.7%, 0%, 50.2%)
CIE-LABlab(19.05, 40.94, -53.87)
CIE-LCHlch(19.05, 67.66, 307.23°)
OKLaboklab(32.07% 0.0404 -0.1552)
OKLCHoklch(32.07% 0.16 284.6)
XYZxyz(5.3831, 2.7587, 20.3234)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31167F #647F16
analogous
#162F7F #31167F #66167F
triadic
#31167F #7F3116 #167F31
tetradic
#31167F #7F162F #647F16 #167F66
square
#31167F #7F162F #647F16 #167F66
split-complementary
#31167F #7F6616 #2F7F16
monochromatic
#0A051A #1D0D4B #31167F #451FB3 #5F34DC

Accessibility & contrast

On white

13.53
#31167F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#31167F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31167F
13.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31167F#FFFFFF#000000##FFFFFF
##31167F1.0013.531.5513.53
#FFFFFF13.531.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003182
Deuteranopia (green-blind)
#002B7D
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #31167f;
/* rgb */ color: rgb(49, 22, 127);
/* oklch */ color: oklch(32.1% 0.160 284.6);
Tailwind
colors: {
  custom: {
    50: '#7458a5',
    500: '#31167f',
    950: '#000000',
  },
}
SCSS
$custom: #31167f;
$custom-light: #7458a5;
$custom-dark: #000000;
JSON
{
  "hex": "#31167f",
  "rgb": {
    "r": 49,
    "g": 22,
    "b": 127
  },
  "hsl": {
    "h": 255.429,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.32072,
    "c": 0.16042,
    "h": 284.6
  },
  "luminance": 0.02759
}

Semantic roles & 50–950 ramp

primary
#31167F
secondary
#95B43D
accent
#ED3BBF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #31167F

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

Preview Lab → · Contrast checker → · Palette generator →

#31167F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva