#311267#311267

#311267 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.1% C 0.136 H 292.3°. Best body text is #FFFFFF at 14.86:1 contrast (WCAG AA passes).

Color values

HEX#311267
RGBrgb(49, 18, 103)
HSLhsl(262, 70%, 24%)
HSVhsv(262, 83%, 40%)
CMYKcmyk(52.4%, 82.5%, 0%, 59.6%)
CIE-LABlab(15.82, 35.73, -43.67)
CIE-LCHlch(15.82, 56.42, 309.29°)
OKLaboklab(29.06% 0.0514 -0.1254)
OKLCHoklch(29.06% 0.136 292.3)
XYZxyz(3.9304, 2.0647, 13.0208)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311267 #486712
analogous
#121D67 #311267 #5B1267
triadic
#311267 #673112 #126731
tetradic
#311267 #67121D #486712 #12675B
square
#311267 #67121D #486712 #12675B
split-complementary
#311267 #675B12 #1D6712
monochromatic
#0C051A #180933 #311267 #4A1B9B #6324CF

Accessibility & contrast

On white

14.86
#311267 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#311267 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311267
14.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311267#FFFFFF#000000##FFFFFF
##3112671.0014.861.4114.86
#FFFFFF14.861.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002969
Deuteranopia (green-blind)
#002665
Tritanopia (blue-blind)
#1F2A3C
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #311267;
/* rgb */ color: rgb(49, 18, 103);
/* oklch */ color: oklch(29.1% 0.136 292.3);
Tailwind
colors: {
  custom: {
    50: '#705493',
    500: '#311267',
    950: '#000000',
  },
}
SCSS
$custom: #311267;
$custom-light: #705493;
$custom-dark: #000000;
JSON
{
  "hex": "#311267",
  "rgb": {
    "r": 49,
    "g": 18,
    "b": 103
  },
  "hsl": {
    "h": 261.882,
    "s": 70.248,
    "l": 23.725
  },
  "oklch": {
    "l": 0.29057,
    "c": 0.13553,
    "h": 292.3
  },
  "luminance": 0.02065
}

Semantic roles & 50–950 ramp

primary
#311267
secondary
#799F36
accent
#ED3BAC
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #311267

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

Preview Lab → · Contrast checker → · Palette generator →

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