#311775#311775

#311775 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.1% C 0.147 H 287.0°. Best body text is #FFFFFF at 13.91:1 contrast (WCAG AA passes).

Color values

HEX#311775
RGBrgb(49, 23, 117)
HSLhsl(257, 67%, 27%)
HSVhsv(257, 80%, 46%)
CMYKcmyk(58.1%, 80.3%, 0%, 54.1%)
CIE-LABlab(18.14, 37.43, -48.97)
CIE-LCHlch(18.14, 61.63, 307.39°)
OKLaboklab(31.12% 0.043 -0.1409)
OKLCHoklch(31.12% 0.147 287)
XYZxyz(4.7829, 2.5499, 17.0663)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311775 #5B7517
analogous
#172C75 #311775 #601775
triadic
#311775 #753117 #177531
tetradic
#311775 #75172C #5B7517 #177560
square
#311775 #75172C #5B7517 #177560
split-complementary
#311775 #756017 #2C7517
monochromatic
#0B051A #1C0D42 #311775 #4621A8 #5E30D6

Accessibility & contrast

On white

13.91
#311775 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#311775 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311775
13.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311775#FFFFFF#000000##FFFFFF
##3117751.0013.911.5113.91
#FFFFFF13.911.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.911.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #311775;
/* rgb */ color: rgb(49, 23, 117);
/* oklch */ color: oklch(31.1% 0.147 287.0);
Tailwind
colors: {
  custom: {
    50: '#72589e',
    500: '#311775',
    950: '#000000',
  },
}
SCSS
$custom: #311775;
$custom-light: #72589e;
$custom-dark: #000000;
JSON
{
  "hex": "#311775",
  "rgb": {
    "r": 49,
    "g": 23,
    "b": 117
  },
  "hsl": {
    "h": 256.596,
    "s": 67.143,
    "l": 27.451
  },
  "oklch": {
    "l": 0.31117,
    "c": 0.14736,
    "h": 287
  },
  "luminance": 0.0255
}

Semantic roles & 50–950 ramp

primary
#311775
secondary
#8CAA3D
accent
#EA3EBA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #311775

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

Preview Lab → · Contrast checker → · Palette generator →

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