#311458#311458

#311458 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.8% C 0.115 H 297.9°. Best body text is #FFFFFF at 15.31:1 contrast (WCAG AA passes).

Color values

HEX#311458
RGBrgb(49, 20, 88)
HSLhsl(266, 63%, 21%)
HSVhsv(266, 77%, 35%)
CMYKcmyk(44.3%, 77.3%, 0%, 65.5%)
CIE-LABlab(14.72, 30.32, -35.48)
CIE-LCHlch(14.72, 46.67, 310.52°)
OKLaboklab(27.83% 0.0538 -0.1014)
OKLCHoklch(27.83% 0.115 297.9)
XYZxyz(3.2778, 1.8578, 9.4165)
Luminance0.0186 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311458 #3B5814
analogous
#141958 #311458 #531458
triadic
#311458 #583114 #145831
tetradic
#311458 #581419 #3B5814 #145853
square
#311458 #581419 #3B5814 #145853
split-complementary
#311458 #585314 #195814
monochromatic
#0E0619 #150926 #311458 #4D1F8A #692BBC

Accessibility & contrast

On white

15.31
#311458 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#311458 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311458
15.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311458#FFFFFF#000000##FFFFFF
##3114581.0015.311.3715.31
#FFFFFF15.311.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255A
Deuteranopia (green-blind)
#002457
Tritanopia (blue-blind)
#272534
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #311458;
/* rgb */ color: rgb(49, 20, 88);
/* oklch */ color: oklch(27.8% 0.115 297.9);
Tailwind
colors: {
  custom: {
    50: '#6d5488',
    500: '#311458',
    950: '#000000',
  },
}
SCSS
$custom: #311458;
$custom-light: #6d5488;
$custom-dark: #000000;
JSON
{
  "hex": "#311458",
  "rgb": {
    "r": 49,
    "g": 20,
    "b": 88
  },
  "hsl": {
    "h": 265.588,
    "s": 62.963,
    "l": 21.176
  },
  "oklch": {
    "l": 0.27834,
    "c": 0.11474,
    "h": 297.9
  },
  "luminance": 0.01858
}

Semantic roles & 50–950 ramp

primary
#311458
secondary
#6A9038
accent
#E642A0
background
#F6F5F8
surface
#ECE8F0
border
#C7C4CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #311458

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

Preview Lab → · Contrast checker → · Palette generator →

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