#310F44#310F44

#310F44 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.4% C 0.097 H 310.7°. Best body text is #FFFFFF at 16.38:1 contrast (WCAG AA passes).

Color values

HEX#310F44
RGBrgb(49, 15, 68)
HSLhsl(278, 64%, 16%)
HSVhsv(278, 78%, 27%)
CMYKcmyk(27.9%, 77.9%, 0%, 73.3%)
CIE-LABlab(12.04, 27.46, -26.08)
CIE-LCHlch(12.04, 37.87, 316.48°)
OKLaboklab(25.38% 0.0634 -0.0737)
OKLCHoklch(25.38% 0.097 310.7)
XYZxyz(2.4806, 1.4120, 5.6096)
Luminance0.0141 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310F44 #22440F
analogous
#170F44 #310F44 #440F3D
triadic
#310F44 #44310F #0F4431
tetradic
#310F44 #44170F #22440F #0F3D44
square
#310F44 #44170F #22440F #0F3D44
split-complementary
#310F44 #3D440F #0F4417
monochromatic
#120619 #120619 #310F44 #551A76 #7925A8

Accessibility & contrast

On white

16.38
#310F44 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#310F44 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310F44
16.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310F44#FFFFFF#000000##FFFFFF
##310F441.0016.381.2816.38
#FFFFFF16.381.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E46
Deuteranopia (green-blind)
#072043
Tritanopia (blue-blind)
#2E1A28
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #310f44;
/* rgb */ color: rgb(49, 15, 68);
/* oklch */ color: oklch(25.4% 0.097 310.7);
Tailwind
colors: {
  custom: {
    50: '#6c5078',
    500: '#310f44',
    950: '#000000',
  },
}
SCSS
$custom: #310f44;
$custom-light: #6c5078;
$custom-dark: #000000;
JSON
{
  "hex": "#310f44",
  "rgb": {
    "r": 49,
    "g": 15,
    "b": 68
  },
  "hsl": {
    "h": 278.491,
    "s": 63.855,
    "l": 16.275
  },
  "oklch": {
    "l": 0.2538,
    "c": 0.09724,
    "h": 310.7
  },
  "luminance": 0.01412
}

Semantic roles & 50–950 ramp

primary
#310F44
secondary
#4C7E30
accent
#E7417C
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #310F44

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

Preview Lab → · Contrast checker → · Palette generator →

#310F44 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva