#311258#311258

#311258 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.6% C 0.117 H 298.5°. Best body text is #FFFFFF at 15.46:1 contrast (WCAG AA passes).

Color values

HEX#311258
RGBrgb(49, 18, 88)
HSLhsl(267, 66%, 21%)
HSVhsv(267, 80%, 35%)
CMYKcmyk(44.3%, 79.5%, 0%, 65.5%)
CIE-LABlab(14.34, 31.39, -36.09)
CIE-LCHlch(14.34, 47.83, 311.01°)
OKLaboklab(27.57% 0.0559 -0.1032)
OKLCHoklch(27.57% 0.117 298.5)
XYZxyz(3.2439, 1.7901, 9.4052)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311258 #395812
analogous
#121658 #311258 #541258
triadic
#311258 #583112 #125831
tetradic
#311258 #581216 #395812 #125854
square
#311258 #581216 #395812 #125854
split-complementary
#311258 #585412 #165812
monochromatic
#0E0519 #150825 #311258 #4D1C8B #6A27BE

Accessibility & contrast

On white

15.46
#311258 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311258
15.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311258#FFFFFF#000000##FFFFFF
##3112581.0015.461.3615.46
#FFFFFF15.461.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245A
Deuteranopia (green-blind)
#002457
Tritanopia (blue-blind)
#272434
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #311258;
/* rgb */ color: rgb(49, 18, 88);
/* oklch */ color: oklch(27.6% 0.117 298.5);
Tailwind
colors: {
  custom: {
    50: '#6e5388',
    500: '#311258',
    950: '#000000',
  },
}
SCSS
$custom: #311258;
$custom-light: #6e5388;
$custom-dark: #000000;
JSON
{
  "hex": "#311258",
  "rgb": {
    "r": 49,
    "g": 18,
    "b": 88
  },
  "hsl": {
    "h": 266.571,
    "s": 66.038,
    "l": 20.784
  },
  "oklch": {
    "l": 0.27567,
    "c": 0.11735,
    "h": 298.5
  },
  "luminance": 0.0179
}

Semantic roles & 50–950 ramp

primary
#311258
secondary
#689135
accent
#E93F9E
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #311258

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

Preview Lab → · Contrast checker → · Palette generator →

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