#311269#311269

#311269 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.3% C 0.138 H 291.6°. Best body text is #FFFFFF at 14.78:1 contrast (WCAG AA passes).

Color values

HEX#311269
RGBrgb(49, 18, 105)
HSLhsl(261, 71%, 24%)
HSVhsv(261, 83%, 41%)
CMYKcmyk(53.3%, 82.9%, 0%, 58.8%)
CIE-LABlab(16.03, 36.32, -44.64)
CIE-LCHlch(16.03, 57.55, 309.13°)
OKLaboklab(29.27% 0.0508 -0.1282)
OKLCHoklch(29.27% 0.138 291.6)
XYZxyz(4.0320, 2.1053, 13.5558)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311269 #4A6912
analogous
#121F69 #311269 #5D1269
triadic
#311269 #693112 #126931
tetradic
#311269 #69121F #4A6912 #12695D
square
#311269 #69121F #4A6912 #12695D
split-complementary
#311269 #695D12 #1F6912
monochromatic
#0C041A #190935 #311269 #491B9D #6224D1

Accessibility & contrast

On white

14.78
#311269 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#311269 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311269
14.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311269#FFFFFF#000000##FFFFFF
##3112691.0014.781.4214.78
#FFFFFF14.781.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296B
Deuteranopia (green-blind)
#002667
Tritanopia (blue-blind)
#1E2B3D
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #311269;
/* rgb */ color: rgb(49, 18, 105);
/* oklch */ color: oklch(29.3% 0.138 291.6);
Tailwind
colors: {
  custom: {
    50: '#705495',
    500: '#311269',
    950: '#000000',
  },
}
SCSS
$custom: #311269;
$custom-light: #705495;
$custom-dark: #000000;
JSON
{
  "hex": "#311269",
  "rgb": {
    "r": 49,
    "g": 18,
    "b": 105
  },
  "hsl": {
    "h": 261.379,
    "s": 70.732,
    "l": 24.118
  },
  "oklch": {
    "l": 0.29265,
    "c": 0.13792,
    "h": 291.6
  },
  "luminance": 0.02106
}

Semantic roles & 50–950 ramp

primary
#311269
secondary
#7BA136
accent
#ED3AAE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #311269

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

Preview Lab → · Contrast checker → · Palette generator →

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