#311675#311675

#311675 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.0% C 0.148 H 287.1°. Best body text is #FFFFFF at 13.98:1 contrast (WCAG AA passes).

Color values

HEX#311675
RGBrgb(49, 22, 117)
HSLhsl(257, 68%, 27%)
HSVhsv(257, 81%, 46%)
CMYKcmyk(58.1%, 81.2%, 0%, 54.1%)
CIE-LABlab(17.97, 37.93, -49.26)
CIE-LCHlch(17.97, 62.17, 307.60°)
OKLaboklab(31% 0.0437 -0.1418)
OKLCHoklch(31% 0.148 287.1)
XYZxyz(4.7635, 2.5109, 17.0598)
Luminance0.0251 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311675 #5A7516
analogous
#162A75 #311675 #611675
triadic
#311675 #753116 #167531
tetradic
#311675 #75162A #5A7516 #167561
square
#311675 #75162A #5A7516 #167561
split-complementary
#311675 #756116 #2A7516
monochromatic
#0B051A #1B0C41 #311675 #4720A9 #5E2ED8

Accessibility & contrast

On white

13.98
#311675 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#311675 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311675
13.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311675#FFFFFF#000000##FFFFFF
##3116751.0013.981.5013.98
#FFFFFF13.981.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E78
Deuteranopia (green-blind)
#002973
Tritanopia (blue-blind)
#123245
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #311675;
/* rgb */ color: rgb(49, 22, 117);
/* oklch */ color: oklch(31.0% 0.148 287.1);
Tailwind
colors: {
  custom: {
    50: '#72579e',
    500: '#311675',
    950: '#000000',
  },
}
SCSS
$custom: #311675;
$custom-light: #72579e;
$custom-dark: #000000;
JSON
{
  "hex": "#311675",
  "rgb": {
    "r": 49,
    "g": 22,
    "b": 117
  },
  "hsl": {
    "h": 257.053,
    "s": 68.345,
    "l": 27.255
  },
  "oklch": {
    "l": 0.30995,
    "c": 0.14837,
    "h": 287.1
  },
  "luminance": 0.02511
}

Semantic roles & 50–950 ramp

primary
#311675
secondary
#8BAB3C
accent
#EB3DBA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #311675

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

Preview Lab → · Contrast checker → · Palette generator →

#311675 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva