#311A67#311A67

#311A67 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.1% C 0.126 H 290.4°. Best body text is #FFFFFF at 14.25:1 contrast (WCAG AA passes).

Color values

HEX#311A67
RGBrgb(49, 26, 103)
HSLhsl(258, 60%, 25%)
HSVhsv(258, 75%, 40%)
CMYKcmyk(52.4%, 74.8%, 0%, 59.6%)
CIE-LABlab(17.32, 31.48, -41.21)
CIE-LCHlch(17.32, 51.86, 307.38°)
OKLaboklab(30.12% 0.0441 -0.1182)
OKLCHoklch(30.12% 0.126 290.4)
XYZxyz(4.0835, 2.3709, 13.0718)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311A67 #50671A
analogous
#1A2967 #311A67 #571A67
triadic
#311A67 #67311A #1A6731
tetradic
#311A67 #671A29 #50671A #1A6757
square
#311A67 #671A29 #50671A #1A6757
split-complementary
#311A67 #67571A #29671A
monochromatic
#0C0618 #1A0E36 #311A67 #482698 #5F33C9

Accessibility & contrast

On white

14.25
#311A67 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#311A67 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311A67
14.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311A67#FFFFFF#000000##FFFFFF
##311A671.0014.251.4714.25
#FFFFFF14.251.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C69
Deuteranopia (green-blind)
#002965
Tritanopia (blue-blind)
#1F2E3E
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #311a67;
/* rgb */ color: rgb(49, 26, 103);
/* oklch */ color: oklch(30.1% 0.126 290.4);
Tailwind
colors: {
  custom: {
    50: '#6f5993',
    500: '#311a67',
    950: '#000000',
  },
}
SCSS
$custom: #311a67;
$custom-light: #6f5993;
$custom-dark: #000000;
JSON
{
  "hex": "#311a67",
  "rgb": {
    "r": 49,
    "g": 26,
    "b": 103
  },
  "hsl": {
    "h": 257.922,
    "s": 59.69,
    "l": 25.294
  },
  "oklch": {
    "l": 0.30115,
    "c": 0.12619,
    "h": 290.4
  },
  "luminance": 0.02371
}

Semantic roles & 50–950 ramp

primary
#311A67
secondary
#819D40
accent
#E345B4
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #311A67

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

Preview Lab → · Contrast checker → · Palette generator →

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