#312261#312261

#312261 is a dark, moderate violet. Relative luminance 0.027; OKLCH L 30.9% C 0.107 H 289.6°. Best body text is #FFFFFF at 13.71:1 contrast (WCAG AA passes).

Color values

HEX#312261
RGBrgb(49, 34, 97)
HSLhsl(254, 48%, 26%)
HSVhsv(254, 65%, 38%)
CMYKcmyk(49.5%, 64.9%, 0%, 62%)
CIE-LABlab(18.63, 24.60, -35.14)
CIE-LCHlch(18.63, 42.89, 305.00°)
OKLaboklab(30.89% 0.0358 -0.1004)
OKLCHoklch(30.89% 0.107 289.6)
XYZxyz(3.9957, 2.6599, 11.6098)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312261 #526122
analogous
#223261 #312261 #502261
triadic
#312261 #613122 #226131
tetradic
#312261 #612232 #526122 #226150
square
#312261 #612232 #526122 #226150
split-complementary
#312261 #615022 #326122
monochromatic
#0B0817 #1A1234 #312261 #48328E #5F42BC

Accessibility & contrast

On white

13.71
#312261 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#312261 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312261
13.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312261#FFFFFF#000000##FFFFFF
##3122611.0013.711.5313.71
#FFFFFF13.711.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F63
Deuteranopia (green-blind)
#002C60
Tritanopia (blue-blind)
#22303E
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #312261;
/* rgb */ color: rgb(49, 34, 97);
/* oklch */ color: oklch(30.9% 0.107 289.6);
Tailwind
colors: {
  custom: {
    50: '#6e5e8e',
    500: '#312261',
    950: '#000000',
  },
}
SCSS
$custom: #312261;
$custom-light: #6e5e8e;
$custom-dark: #000000;
JSON
{
  "hex": "#312261",
  "rgb": {
    "r": 49,
    "g": 34,
    "b": 97
  },
  "hsl": {
    "h": 254.286,
    "s": 48.092,
    "l": 25.686
  },
  "oklch": {
    "l": 0.3089,
    "c": 0.10661,
    "h": 289.6
  },
  "luminance": 0.0266
}

Semantic roles & 50–950 ramp

primary
#312261
secondary
#83954A
accent
#D850B7
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #312261

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

Preview Lab → · Contrast checker → · Palette generator →

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