#311A60#311A60

#311A60 is a dark, moderate violet. Relative luminance 0.022; OKLCH L 29.5% C 0.117 H 292.9°. Best body text is #FFFFFF at 14.51:1 contrast (WCAG AA passes).

Color values

HEX#311A60
RGBrgb(49, 26, 96)
HSLhsl(260, 57%, 24%)
HSVhsv(260, 73%, 38%)
CMYKcmyk(49%, 72.9%, 0%, 62.4%)
CIE-LABlab(16.68, 29.30, -37.64)
CIE-LCHlch(16.68, 47.70, 307.90°)
OKLaboklab(29.46% 0.0455 -0.1077)
OKLCHoklch(29.46% 0.117 292.9)
XYZxyz(3.7468, 2.2362, 11.2983)
Luminance0.0224 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311A60 #49601A
analogous
#1A2660 #311A60 #541A60
triadic
#311A60 #60311A #1A6031
tetradic
#311A60 #601A26 #49601A #1A6054
square
#311A60 #601A26 #49601A #1A6054
split-complementary
#311A60 #60541A #26601A
monochromatic
#0C0718 #180D30 #311A60 #4A2790 #6234C0

Accessibility & contrast

On white

14.51
#311A60 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#311A60 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311A60
14.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311A60#FFFFFF#000000##FFFFFF
##311A601.0014.511.4514.51
#FFFFFF14.511.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A62
Deuteranopia (green-blind)
#00285F
Tritanopia (blue-blind)
#232B3A
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #311a60;
/* rgb */ color: rgb(49, 26, 96);
/* oklch */ color: oklch(29.5% 0.117 292.9);
Tailwind
colors: {
  custom: {
    50: '#6e588e',
    500: '#311a60',
    950: '#000000',
  },
}
SCSS
$custom: #311a60;
$custom-light: #6e588e;
$custom-dark: #000000;
JSON
{
  "hex": "#311a60",
  "rgb": {
    "r": 49,
    "g": 26,
    "b": 96
  },
  "hsl": {
    "h": 259.714,
    "s": 57.377,
    "l": 23.922
  },
  "oklch": {
    "l": 0.29456,
    "c": 0.11695,
    "h": 292.9
  },
  "luminance": 0.02236
}

Semantic roles & 50–950 ramp

primary
#311A60
secondary
#7A9640
accent
#E147AE
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #311A60

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

Preview Lab → · Contrast checker → · Palette generator →

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