#311274#311274

#311274 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.4% C 0.151 H 288.1°. Best body text is #FFFFFF at 14.29:1 contrast (WCAG AA passes).

Color values

HEX#311274
RGBrgb(49, 18, 116)
HSLhsl(259, 73%, 26%)
HSVhsv(259, 84%, 45%)
CMYKcmyk(57.8%, 84.5%, 0%, 54.5%)
CIE-LABlab(17.21, 39.52, -49.86)
CIE-LCHlch(17.21, 63.63, 308.40°)
OKLaboklab(30.44% 0.0469 -0.1435)
OKLCHoklch(30.44% 0.151 288.1)
XYZxyz(4.6344, 2.3463, 16.7283)
Luminance0.0235 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311274 #557412
analogous
#122474 #311274 #621274
triadic
#311274 #743112 #127431
tetradic
#311274 #741224 #557412 #127462
square
#311274 #741224 #557412 #127462
split-complementary
#311274 #746212 #247412
monochromatic
#0B041A #1B0A3F #311274 #471AA9 #5E23DD

Accessibility & contrast

On white

14.29
#311274 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#311274 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311274
14.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311274#FFFFFF#000000##FFFFFF
##3112741.0014.291.4714.29
#FFFFFF14.291.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C77
Deuteranopia (green-blind)
#002872
Tritanopia (blue-blind)
#143044
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #311274;
/* rgb */ color: rgb(49, 18, 116);
/* oklch */ color: oklch(30.4% 0.151 288.1);
Tailwind
colors: {
  custom: {
    50: '#72559d',
    500: '#311274',
    950: '#000000',
  },
}
SCSS
$custom: #311274;
$custom-light: #72559d;
$custom-dark: #000000;
JSON
{
  "hex": "#311274",
  "rgb": {
    "r": 49,
    "g": 18,
    "b": 116
  },
  "hsl": {
    "h": 258.98,
    "s": 73.134,
    "l": 26.275
  },
  "oklch": {
    "l": 0.30436,
    "c": 0.15097,
    "h": 288.1
  },
  "luminance": 0.02347
}

Semantic roles & 50–950 ramp

primary
#311274
secondary
#86AB37
accent
#F038B6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #311274

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

Preview Lab → · Contrast checker → · Palette generator →

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