#311865#311865

#311865 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.6% C 0.126 H 291.7°. Best body text is #FFFFFF at 14.49:1 contrast (WCAG AA passes).

Color values

HEX#311865
RGBrgb(49, 24, 101)
HSLhsl(259, 62%, 25%)
HSVhsv(259, 76%, 40%)
CMYKcmyk(51.5%, 76.2%, 0%, 60.4%)
CIE-LABlab(16.73, 32.00, -40.87)
CIE-LCHlch(16.73, 51.91, 308.06°)
OKLaboklab(29.63% 0.0465 -0.1172)
OKLCHoklch(29.63% 0.126 291.7)
XYZxyz(3.9416, 2.2457, 12.5352)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311865 #4C6518
analogous
#182565 #311865 #581865
triadic
#311865 #653118 #186531
tetradic
#311865 #651825 #4C6518 #186558
square
#311865 #651825 #4C6518 #186558
split-complementary
#311865 #655818 #256518
monochromatic
#0C0619 #190C34 #311865 #492496 #6130C8

Accessibility & contrast

On white

14.49
#311865 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#311865 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311865
14.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311865#FFFFFF#000000##FFFFFF
##3118651.0014.491.4514.49
#FFFFFF14.491.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A67
Deuteranopia (green-blind)
#002864
Tritanopia (blue-blind)
#202C3D
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #311865;
/* rgb */ color: rgb(49, 24, 101);
/* oklch */ color: oklch(29.6% 0.126 291.7);
Tailwind
colors: {
  custom: {
    50: '#6f5792',
    500: '#311865',
    950: '#000000',
  },
}
SCSS
$custom: #311865;
$custom-light: #6f5792;
$custom-dark: #000000;
JSON
{
  "hex": "#311865",
  "rgb": {
    "r": 49,
    "g": 24,
    "b": 101
  },
  "hsl": {
    "h": 259.481,
    "s": 61.6,
    "l": 24.51
  },
  "oklch": {
    "l": 0.29632,
    "c": 0.12613,
    "h": 291.7
  },
  "luminance": 0.02246
}

Semantic roles & 50–950 ramp

primary
#311865
secondary
#7D9B3E
accent
#E543B0
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #311865

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

Preview Lab → · Contrast checker → · Palette generator →

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