#311273#311273

#311273 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.3% C 0.150 H 288.4°. Best body text is #FFFFFF at 14.34:1 contrast (WCAG AA passes).

Color values

HEX#311273
RGBrgb(49, 18, 115)
HSLhsl(259, 73%, 26%)
HSVhsv(259, 84%, 45%)
CMYKcmyk(57.4%, 84.3%, 0%, 54.9%)
CIE-LABlab(17.10, 39.23, -49.40)
CIE-LCHlch(17.10, 63.08, 308.46°)
OKLaboklab(30.33% 0.0473 -0.1421)
OKLCHoklch(30.33% 0.15 288.4)
XYZxyz(4.5765, 2.3232, 16.4236)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311273 #547312
analogous
#122373 #311273 #611273
triadic
#311273 #733112 #127331
tetradic
#311273 #731223 #547312 #127361
square
#311273 #731223 #547312 #127361
split-complementary
#311273 #736112 #237312
monochromatic
#0B041A #1A0A3E #311273 #481AA8 #5E23DD

Accessibility & contrast

On white

14.34
#311273 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#311273 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311273
14.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311273#FFFFFF#000000##FFFFFF
##3112731.0014.341.4614.34
#FFFFFF14.341.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C76
Deuteranopia (green-blind)
#002871
Tritanopia (blue-blind)
#152F43
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #311273;
/* rgb */ color: rgb(49, 18, 115);
/* oklch */ color: oklch(30.3% 0.150 288.4);
Tailwind
colors: {
  custom: {
    50: '#72559c',
    500: '#311273',
    950: '#000000',
  },
}
SCSS
$custom: #311273;
$custom-light: #72559c;
$custom-dark: #000000;
JSON
{
  "hex": "#311273",
  "rgb": {
    "r": 49,
    "g": 18,
    "b": 115
  },
  "hsl": {
    "h": 259.175,
    "s": 72.932,
    "l": 26.078
  },
  "oklch": {
    "l": 0.30328,
    "c": 0.1498,
    "h": 288.4
  },
  "luminance": 0.02323
}

Semantic roles & 50–950 ramp

primary
#311273
secondary
#85AA37
accent
#F038B5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #311273

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

Preview Lab → · Contrast checker → · Palette generator →

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