#311862#311862

#311862 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.3% C 0.122 H 292.7°. Best body text is #FFFFFF at 14.61:1 contrast (WCAG AA passes).

Color values

HEX#311862
RGBrgb(49, 24, 98)
HSLhsl(260, 61%, 24%)
HSVhsv(260, 76%, 38%)
CMYKcmyk(50%, 75.5%, 0%, 61.6%)
CIE-LABlab(16.44, 31.08, -39.35)
CIE-LCHlch(16.44, 50.14, 308.31°)
OKLaboklab(29.34% 0.0472 -0.1128)
OKLCHoklch(29.34% 0.122 292.7)
XYZxyz(3.7972, 2.1880, 11.7751)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311862 #496218
analogous
#182462 #311862 #561862
triadic
#311862 #623118 #186231
tetradic
#311862 #621824 #496218 #186256
square
#311862 #621824 #496218 #186256
split-complementary
#311862 #625618 #246218
monochromatic
#0C0619 #180C31 #311862 #4A2493 #6230C4

Accessibility & contrast

On white

14.61
#311862 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#311862 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311862
14.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311862#FFFFFF#000000##FFFFFF
##3118621.0014.611.4414.61
#FFFFFF14.611.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A64
Deuteranopia (green-blind)
#002761
Tritanopia (blue-blind)
#222B3B
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #311862;
/* rgb */ color: rgb(49, 24, 98);
/* oklch */ color: oklch(29.3% 0.122 292.7);
Tailwind
colors: {
  custom: {
    50: '#6f578f',
    500: '#311862',
    950: '#000000',
  },
}
SCSS
$custom: #311862;
$custom-light: #6f578f;
$custom-dark: #000000;
JSON
{
  "hex": "#311862",
  "rgb": {
    "r": 49,
    "g": 24,
    "b": 98
  },
  "hsl": {
    "h": 260.27,
    "s": 60.656,
    "l": 23.922
  },
  "oklch": {
    "l": 0.29344,
    "c": 0.12226,
    "h": 292.7
  },
  "luminance": 0.02188
}

Semantic roles & 50–950 ramp

primary
#311862
secondary
#7A983E
accent
#E444AE
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #311862

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

Preview Lab → · Contrast checker → · Palette generator →

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