#311260#311260

#311260 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.3% C 0.127 H 295.0°. Best body text is #FFFFFF at 15.15:1 contrast (WCAG AA passes).

Color values

HEX#311260
RGBrgb(49, 18, 96)
HSLhsl(264, 68%, 22%)
HSVhsv(264, 81%, 38%)
CMYKcmyk(49%, 81.3%, 0%, 62.4%)
CIE-LABlab(15.12, 33.70, -40.19)
CIE-LCHlch(15.12, 52.45, 309.98°)
OKLaboklab(28.35% 0.0537 -0.1152)
OKLCHoklch(28.35% 0.127 295)
XYZxyz(3.5937, 1.9300, 11.2472)
Luminance0.0193 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311260 #416012
analogous
#121A60 #311260 #581260
triadic
#311260 #603112 #126031
tetradic
#311260 #60121A #416012 #126058
square
#311260 #60121A #416012 #126058
split-complementary
#311260 #605812 #1A6012
monochromatic
#0D051A #17082C #311260 #4B1C94 #6625C7

Accessibility & contrast

On white

15.15
#311260 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#311260 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311260
15.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311260#FFFFFF#000000##FFFFFF
##3112601.0015.151.3915.15
#FFFFFF15.151.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002762
Deuteranopia (green-blind)
#00255F
Tritanopia (blue-blind)
#232738
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #311260;
/* rgb */ color: rgb(49, 18, 96);
/* oklch */ color: oklch(28.3% 0.127 295.0);
Tailwind
colors: {
  custom: {
    50: '#6f548e',
    500: '#311260',
    950: '#000000',
  },
}
SCSS
$custom: #311260;
$custom-light: #6f548e;
$custom-dark: #000000;
JSON
{
  "hex": "#311260",
  "rgb": {
    "r": 49,
    "g": 18,
    "b": 96
  },
  "hsl": {
    "h": 263.846,
    "s": 68.421,
    "l": 22.353
  },
  "oklch": {
    "l": 0.28347,
    "c": 0.1271,
    "h": 295
  },
  "luminance": 0.0193
}

Semantic roles & 50–950 ramp

primary
#311260
secondary
#719836
accent
#EB3DA6
background
#F6F4F8
surface
#ECE8F0
border
#C7C4CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #311260

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

Preview Lab → · Contrast checker → · Palette generator →

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