#311263#311263

#311263 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.6% C 0.131 H 293.8°. Best body text is #FFFFFF at 15.03:1 contrast (WCAG AA passes).

Color values

HEX#311263
RGBrgb(49, 18, 99)
HSLhsl(263, 69%, 23%)
HSVhsv(263, 82%, 39%)
CMYKcmyk(50.5%, 81.8%, 0%, 61.2%)
CIE-LABlab(15.42, 34.57, -41.69)
CIE-LCHlch(15.42, 54.16, 309.66°)
OKLaboklab(28.65% 0.0527 -0.1196)
OKLCHoklch(28.65% 0.131 293.8)
XYZxyz(3.7344, 1.9863, 11.9886)
Luminance0.0199 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311263 #446312
analogous
#121B63 #311263 #591263
triadic
#311263 #633112 #126331
tetradic
#311263 #63121B #446312 #126359
square
#311263 #63121B #446312 #126359
split-complementary
#311263 #635912 #1B6312
monochromatic
#0D051A #17092F #311263 #4B1B97 #6425CB

Accessibility & contrast

On white

15.03
#311263 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#311263 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311263
15.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311263#FFFFFF#000000##FFFFFF
##3112631.0015.031.4015.03
#FFFFFF15.031.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002765
Deuteranopia (green-blind)
#002561
Tritanopia (blue-blind)
#22283A
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #311263;
/* rgb */ color: rgb(49, 18, 99);
/* oklch */ color: oklch(28.6% 0.131 293.8);
Tailwind
colors: {
  custom: {
    50: '#6f5490',
    500: '#311263',
    950: '#000000',
  },
}
SCSS
$custom: #311263;
$custom-light: #6f5490;
$custom-dark: #000000;
JSON
{
  "hex": "#311263",
  "rgb": {
    "r": 49,
    "g": 18,
    "b": 99
  },
  "hsl": {
    "h": 262.963,
    "s": 69.231,
    "l": 22.941
  },
  "oklch": {
    "l": 0.28648,
    "c": 0.13072,
    "h": 293.8
  },
  "luminance": 0.01986
}

Semantic roles & 50–950 ramp

primary
#311263
secondary
#749B36
accent
#EC3CA9
background
#F7F5F8
surface
#EDE8F0
border
#C8C4CB
text
#08030D
muted
#7B787D

Preview Lab

Preview with #311263

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

Preview Lab → · Contrast checker → · Palette generator →

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