#311A74#311A74

#311A74 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.4% C 0.143 H 286.6°. Best body text is #FFFFFF at 13.72:1 contrast (WCAG AA passes).

Color values

HEX#311A74
RGBrgb(49, 26, 116)
HSLhsl(255, 63%, 28%)
HSVhsv(255, 78%, 45%)
CMYKcmyk(57.8%, 77.6%, 0%, 54.5%)
CIE-LABlab(18.59, 35.54, -47.58)
CIE-LCHlch(18.59, 59.39, 306.76°)
OKLaboklab(31.4% 0.0409 -0.1369)
OKLCHoklch(31.4% 0.143 286.6)
XYZxyz(4.7875, 2.6524, 16.7793)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311A74 #5D741A
analogous
#1A3074 #311A74 #5E1A74
triadic
#311A74 #74311A #1A7431
tetradic
#311A74 #741A30 #5D741A #1A745E
square
#311A74 #741A30 #5D741A #1A745E
split-complementary
#311A74 #745E1A #30741A
monochromatic
#0B0619 #1C0F42 #311A74 #4625A6 #5E36D2

Accessibility & contrast

On white

13.72
#311A74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#311A74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311A74
13.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311A74#FFFFFF#000000##FFFFFF
##311A741.0013.721.5313.72
#FFFFFF13.721.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F77
Deuteranopia (green-blind)
#002B72
Tritanopia (blue-blind)
#133345
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #311a74;
/* rgb */ color: rgb(49, 26, 116);
/* oklch */ color: oklch(31.4% 0.143 286.6);
Tailwind
colors: {
  custom: {
    50: '#72599d',
    500: '#311a74',
    950: '#000000',
  },
}
SCSS
$custom: #311a74;
$custom-light: #72599d;
$custom-dark: #000000;
JSON
{
  "hex": "#311a74",
  "rgb": {
    "r": 49,
    "g": 26,
    "b": 116
  },
  "hsl": {
    "h": 255.333,
    "s": 63.38,
    "l": 27.843
  },
  "oklch": {
    "l": 0.31403,
    "c": 0.1429,
    "h": 286.6
  },
  "luminance": 0.02653
}

Semantic roles & 50–950 ramp

primary
#311A74
secondary
#8EA941
accent
#E641BC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #311A74

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

Preview Lab → · Contrast checker → · Palette generator →

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