#311A75#311A75

#311A75 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.5% C 0.144 H 286.4°. Best body text is #FFFFFF at 13.68:1 contrast (WCAG AA passes).

Color values

HEX#311A75
RGBrgb(49, 26, 117)
HSLhsl(255, 64%, 28%)
HSVhsv(255, 78%, 46%)
CMYKcmyk(58.1%, 77.8%, 0%, 54.1%)
CIE-LABlab(18.70, 35.85, -48.06)
CIE-LCHlch(18.70, 59.96, 306.72°)
OKLaboklab(31.51% 0.0406 -0.1383)
OKLCHoklch(31.51% 0.144 286.4)
XYZxyz(4.8459, 2.6758, 17.0873)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311A75 #5E751A
analogous
#1A3075 #311A75 #5E1A75
triadic
#311A75 #75311A #1A7531
tetradic
#311A75 #751A30 #5E751A #1A755E
square
#311A75 #751A30 #5E751A #1A755E
split-complementary
#311A75 #755E1A #30751A
monochromatic
#0A0619 #1C0F43 #311A75 #4625A7 #5E37D3

Accessibility & contrast

On white

13.68
#311A75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#311A75 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311A75
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311A75#FFFFFF#000000##FFFFFF
##311A751.0013.681.5413.68
#FFFFFF13.681.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003078
Deuteranopia (green-blind)
#002B73
Tritanopia (blue-blind)
#123346
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #311a75;
/* rgb */ color: rgb(49, 26, 117);
/* oklch */ color: oklch(31.5% 0.144 286.4);
Tailwind
colors: {
  custom: {
    50: '#72599e',
    500: '#311a75',
    950: '#000000',
  },
}
SCSS
$custom: #311a75;
$custom-light: #72599e;
$custom-dark: #000000;
JSON
{
  "hex": "#311a75",
  "rgb": {
    "r": 49,
    "g": 26,
    "b": 117
  },
  "hsl": {
    "h": 255.165,
    "s": 63.636,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31505,
    "c": 0.14416,
    "h": 286.4
  },
  "luminance": 0.02676
}

Semantic roles & 50–950 ramp

primary
#311A75
secondary
#8FAA41
accent
#E741BD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #311A75

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

Preview Lab → · Contrast checker → · Palette generator →

#311A75 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva