#311965#311965

#311965 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.8% C 0.125 H 291.4°. Best body text is #FFFFFF at 14.41:1 contrast (WCAG AA passes).

Color values

HEX#311965
RGBrgb(49, 25, 101)
HSLhsl(259, 60%, 25%)
HSVhsv(259, 75%, 40%)
CMYKcmyk(51.5%, 75.2%, 0%, 60.4%)
CIE-LABlab(16.93, 31.43, -40.54)
CIE-LCHlch(16.93, 51.30, 307.79°)
OKLaboklab(29.78% 0.0455 -0.1163)
OKLCHoklch(29.78% 0.125 291.4)
XYZxyz(3.9626, 2.2877, 12.5422)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311965 #4D6519
analogous
#192765 #311965 #571965
triadic
#311965 #653119 #196531
tetradic
#311965 #651927 #4D6519 #196557
square
#311965 #651927 #4D6519 #196557
split-complementary
#311965 #655719 #276519
monochromatic
#0C0619 #190D34 #311965 #492596 #6131C7

Accessibility & contrast

On white

14.41
#311965 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#311965 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311965
14.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311965#FFFFFF#000000##FFFFFF
##3119651.0014.411.4614.41
#FFFFFF14.411.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B67
Deuteranopia (green-blind)
#002864
Tritanopia (blue-blind)
#202D3D
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #311965;
/* rgb */ color: rgb(49, 25, 101);
/* oklch */ color: oklch(29.8% 0.125 291.4);
Tailwind
colors: {
  custom: {
    50: '#6f5892',
    500: '#311965',
    950: '#000000',
  },
}
SCSS
$custom: #311965;
$custom-light: #6f5892;
$custom-dark: #000000;
JSON
{
  "hex": "#311965",
  "rgb": {
    "r": 49,
    "g": 25,
    "b": 101
  },
  "hsl": {
    "h": 258.947,
    "s": 60.317,
    "l": 24.706
  },
  "oklch": {
    "l": 0.29776,
    "c": 0.12487,
    "h": 291.4
  },
  "luminance": 0.02288
}

Semantic roles & 50–950 ramp

primary
#311965
secondary
#7E9B3F
accent
#E344B1
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #311965

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

Preview Lab → · Contrast checker → · Palette generator →

#311965 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva