#311A63#311A63

#311A63 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.7% C 0.121 H 291.8°. Best body text is #FFFFFF at 14.40:1 contrast (WCAG AA passes).

Color values

HEX#311A63
RGBrgb(49, 26, 99)
HSLhsl(259, 58%, 25%)
HSVhsv(259, 74%, 39%)
CMYKcmyk(50.5%, 73.7%, 0%, 61.2%)
CIE-LABlab(16.95, 30.23, -39.18)
CIE-LCHlch(16.95, 49.49, 307.66°)
OKLaboklab(29.74% 0.0449 -0.1123)
OKLCHoklch(29.74% 0.121 291.8)
XYZxyz(3.8875, 2.2925, 12.0396)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311A63 #4C631A
analogous
#1A2863 #311A63 #561A63
triadic
#311A63 #63311A #1A6331
tetradic
#311A63 #631A28 #4C631A #1A6356
square
#311A63 #631A28 #4C631A #1A6356
split-complementary
#311A63 #63561A #28631A
monochromatic
#0C0618 #190D33 #311A63 #492793 #6133C4

Accessibility & contrast

On white

14.40
#311A63 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#311A63 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311A63
14.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311A63#FFFFFF#000000##FFFFFF
##311A631.0014.401.4614.40
#FFFFFF14.401.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B65
Deuteranopia (green-blind)
#002862
Tritanopia (blue-blind)
#212C3C
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #311a63;
/* rgb */ color: rgb(49, 26, 99);
/* oklch */ color: oklch(29.7% 0.121 291.8);
Tailwind
colors: {
  custom: {
    50: '#6f5890',
    500: '#311a63',
    950: '#000000',
  },
}
SCSS
$custom: #311a63;
$custom-light: #6f5890;
$custom-dark: #000000;
JSON
{
  "hex": "#311a63",
  "rgb": {
    "r": 49,
    "g": 26,
    "b": 99
  },
  "hsl": {
    "h": 258.904,
    "s": 58.4,
    "l": 24.51
  },
  "oklch": {
    "l": 0.29735,
    "c": 0.12093,
    "h": 291.8
  },
  "luminance": 0.02293
}

Semantic roles & 50–950 ramp

primary
#311A63
secondary
#7D9940
accent
#E246B1
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08030D
muted
#7B787D

Preview Lab

Preview with #311A63

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

Preview Lab → · Contrast checker → · Palette generator →

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