#310E53#310E53

#310E53 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.6% C 0.116 H 301.8°. Best body text is #FFFFFF at 15.93:1 contrast (WCAG AA passes).

Color values

HEX#310E53
RGBrgb(49, 14, 83)
HSLhsl(270, 71%, 19%)
HSVhsv(270, 83%, 33%)
CMYKcmyk(41%, 83.1%, 0%, 67.5%)
CIE-LABlab(13.18, 31.97, -34.60)
CIE-LCHlch(13.18, 47.11, 312.74°)
OKLaboklab(26.6% 0.0613 -0.0988)
OKLCHoklch(26.6% 0.116 301.8)
XYZxyz(2.9846, 1.5916, 8.3319)
Luminance0.0159 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310E53 #30530E
analogous
#0F0E53 #310E53 #530E53
triadic
#310E53 #53310E #0E5331
tetradic
#310E53 #530F0E #30530E #0E5353
square
#310E53 #530F0E #30530E #0E5353
split-complementary
#310E53 #53530E #0E530F
monochromatic
#0F041A #12051F #310E53 #501787 #6F20BC

Accessibility & contrast

On white

15.93
#310E53 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#310E53 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310E53
15.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310E53#FFFFFF#000000##FFFFFF
##310E531.0015.931.3215.93
#FFFFFF15.931.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002155
Deuteranopia (green-blind)
#002252
Tritanopia (blue-blind)
#2A2030
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #310e53;
/* rgb */ color: rgb(49, 14, 83);
/* oklch */ color: oklch(26.6% 0.116 301.8);
Tailwind
colors: {
  custom: {
    50: '#6d5184',
    500: '#310e53',
    950: '#000000',
  },
}
SCSS
$custom: #310e53;
$custom-light: #6d5184;
$custom-dark: #000000;
JSON
{
  "hex": "#310e53",
  "rgb": {
    "r": 49,
    "g": 14,
    "b": 83
  },
  "hsl": {
    "h": 270.435,
    "s": 71.134,
    "l": 19.02
  },
  "oklch": {
    "l": 0.26601,
    "c": 0.11625,
    "h": 301.8
  },
  "luminance": 0.01592
}

Semantic roles & 50–950 ramp

primary
#310E53
secondary
#5E8D2F
accent
#EE3A93
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #310E53

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

Preview Lab → · Contrast checker → · Palette generator →

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