#310F43#310F43

#310F43 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.3% C 0.096 H 311.4°. Best body text is #FFFFFF at 16.41:1 contrast (WCAG AA passes).

Color values

HEX#310F43
RGBrgb(49, 15, 67)
HSLhsl(279, 63%, 16%)
HSVhsv(279, 78%, 26%)
CMYKcmyk(26.9%, 77.6%, 0%, 73.7%)
CIE-LABlab(11.96, 27.20, -25.51)
CIE-LCHlch(11.96, 37.29, 316.84°)
OKLaboklab(25.3% 0.0635 -0.072)
OKLCHoklch(25.3% 0.096 311.4)
XYZxyz(2.4504, 1.3999, 5.4502)
Luminance0.0140 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310F43 #21430F
analogous
#170F43 #310F43 #430F3B
triadic
#310F43 #43310F #0F4331
tetradic
#310F43 #43170F #21430F #0F3B43
square
#310F43 #43170F #21430F #0F3B43
split-complementary
#310F43 #3B430F #0F4317
monochromatic
#120619 #120619 #310F43 #561A75 #7A25A7

Accessibility & contrast

On white

16.41
#310F43 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310F43
16.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310F43#FFFFFF#000000##FFFFFF
##310F431.0016.411.2816.41
#FFFFFF16.411.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E45
Deuteranopia (green-blind)
#092042
Tritanopia (blue-blind)
#2F1A27
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #310f43;
/* rgb */ color: rgb(49, 15, 67);
/* oklch */ color: oklch(25.3% 0.096 311.4);
Tailwind
colors: {
  custom: {
    50: '#6b5077',
    500: '#310f43',
    950: '#000000',
  },
}
SCSS
$custom: #310f43;
$custom-light: #6b5077;
$custom-dark: #000000;
JSON
{
  "hex": "#310f43",
  "rgb": {
    "r": 49,
    "g": 15,
    "b": 67
  },
  "hsl": {
    "h": 279.231,
    "s": 63.415,
    "l": 16.078
  },
  "oklch": {
    "l": 0.25297,
    "c": 0.09606,
    "h": 311.4
  },
  "luminance": 0.014
}

Semantic roles & 50–950 ramp

primary
#310F43
secondary
#4B7D30
accent
#E6417B
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #310F43

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

Preview Lab → · Contrast checker → · Palette generator →

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