#311259#311259

#311259 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.7% C 0.119 H 298.0°. Best body text is #FFFFFF at 15.43:1 contrast (WCAG AA passes).

Color values

HEX#311259
RGBrgb(49, 18, 89)
HSLhsl(266, 66%, 21%)
HSVhsv(266, 80%, 35%)
CMYKcmyk(44.9%, 79.8%, 0%, 65.1%)
CIE-LABlab(14.44, 31.68, -36.61)
CIE-LCHlch(14.44, 48.41, 310.87°)
OKLaboklab(27.66% 0.0557 -0.1047)
OKLCHoklch(27.66% 0.119 298)
XYZxyz(3.2856, 1.8068, 9.6249)
Luminance0.0181 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311259 #3A5912
analogous
#121659 #311259 #541259
triadic
#311259 #593112 #125931
tetradic
#311259 #591216 #3A5912 #125954
square
#311259 #591216 #3A5912 #125954
split-complementary
#311259 #595412 #165912
monochromatic
#0E0519 #150826 #311259 #4D1C8C #6927BF

Accessibility & contrast

On white

15.43
#311259 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#311259 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311259
15.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311259#FFFFFF#000000##FFFFFF
##3112591.0015.431.3615.43
#FFFFFF15.431.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255B
Deuteranopia (green-blind)
#002458
Tritanopia (blue-blind)
#272434
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #311259;
/* rgb */ color: rgb(49, 18, 89);
/* oklch */ color: oklch(27.7% 0.119 298.0);
Tailwind
colors: {
  custom: {
    50: '#6e5389',
    500: '#311259',
    950: '#000000',
  },
}
SCSS
$custom: #311259;
$custom-light: #6e5389;
$custom-dark: #000000;
JSON
{
  "hex": "#311259",
  "rgb": {
    "r": 49,
    "g": 18,
    "b": 89
  },
  "hsl": {
    "h": 266.197,
    "s": 66.355,
    "l": 20.98
  },
  "oklch": {
    "l": 0.27663,
    "c": 0.11857,
    "h": 298
  },
  "luminance": 0.01807
}

Semantic roles & 50–950 ramp

primary
#311259
secondary
#699235
accent
#E93F9F
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #311259

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

Preview Lab → · Contrast checker → · Palette generator →

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