#311275#311275

#311275 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.5% C 0.152 H 287.8°. Best body text is #FFFFFF at 14.25:1 contrast (WCAG AA passes).

Color values

HEX#311275
RGBrgb(49, 18, 117)
HSLhsl(259, 73%, 26%)
HSVhsv(259, 85%, 46%)
CMYKcmyk(58.1%, 84.6%, 0%, 54.1%)
CIE-LABlab(17.32, 39.81, -50.32)
CIE-LCHlch(17.32, 64.17, 308.35°)
OKLaboklab(30.55% 0.0465 -0.1449)
OKLCHoklch(30.55% 0.152 287.8)
XYZxyz(4.6929, 2.3697, 17.0363)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311275 #567512
analogous
#122575 #311275 #631275
triadic
#311275 #753112 #127531
tetradic
#311275 #751225 #567512 #127563
square
#311275 #751225 #567512 #127563
split-complementary
#311275 #756312 #257512
monochromatic
#0B041B #1B0A40 #311275 #471AAA #5E24DD

Accessibility & contrast

On white

14.25
#311275 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311275
14.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311275#FFFFFF#000000##FFFFFF
##3112751.0014.251.4714.25
#FFFFFF14.251.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D78
Deuteranopia (green-blind)
#002873
Tritanopia (blue-blind)
#133044
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #311275;
/* rgb */ color: rgb(49, 18, 117);
/* oklch */ color: oklch(30.5% 0.152 287.8);
Tailwind
colors: {
  custom: {
    50: '#72559e',
    500: '#311275',
    950: '#000000',
  },
}
SCSS
$custom: #311275;
$custom-light: #72559e;
$custom-dark: #000000;
JSON
{
  "hex": "#311275",
  "rgb": {
    "r": 49,
    "g": 18,
    "b": 117
  },
  "hsl": {
    "h": 258.788,
    "s": 73.333,
    "l": 26.471
  },
  "oklch": {
    "l": 0.30545,
    "c": 0.15214,
    "h": 287.8
  },
  "luminance": 0.0237
}

Semantic roles & 50–950 ramp

primary
#311275
secondary
#87AC37
accent
#F038B6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #311275

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

Preview Lab → · Contrast checker → · Palette generator →

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