#311E8F#311E8F

#311E8F is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.8% C 0.172 H 280.2°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).

Color values

HEX#311E8F
RGBrgb(49, 30, 143)
HSLhsl(250, 65%, 34%)
HSVhsv(250, 79%, 56%)
CMYKcmyk(65.7%, 79%, 0%, 43.9%)
CIE-LABlab(22.18, 41.87, -58.76)
CIE-LCHlch(22.18, 72.15, 305.47°)
OKLaboklab(34.77% 0.0306 -0.1696)
OKLCHoklch(34.77% 0.172 280.2)
XYZxyz(6.6872, 3.5642, 26.3168)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311E8F #7C8F1E
analogous
#1E448F #311E8F #6A1E8F
triadic
#311E8F #8F311E #1E8F31
tetradic
#311E8F #8F1E44 #7C8F1E #1E8F6A
square
#311E8F #8F1E44 #7C8F1E #1E8F6A
split-complementary
#311E8F #8F6A1E #448F1E
monochromatic
#0E092A #20135C #311E8F #4229C2 #654EDA

Accessibility & contrast

On white

12.26
#311E8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#311E8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311E8F
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311E8F#FFFFFF#000000##FFFFFF
##311E8F1.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003992
Deuteranopia (green-blind)
#00318D
Tritanopia (blue-blind)
#003F56
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #311e8f;
/* rgb */ color: rgb(49, 30, 143);
/* oklch */ color: oklch(34.8% 0.172 280.2);
Tailwind
colors: {
  custom: {
    50: '#775db1',
    500: '#311e8f',
    950: '#000000',
  },
}
SCSS
$custom: #311e8f;
$custom-light: #775db1;
$custom-dark: #000000;
JSON
{
  "hex": "#311e8f",
  "rgb": {
    "r": 49,
    "g": 30,
    "b": 143
  },
  "hsl": {
    "h": 250.088,
    "s": 65.318,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34768,
    "c": 0.17235,
    "h": 280.2
  },
  "luminance": 0.03565
}

Semantic roles & 50–950 ramp

primary
#311E8F
secondary
#AABC4C
accent
#E840CC
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #311E8F

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

Preview Lab → · Contrast checker → · Palette generator →

#311E8F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva