#311E95#311E95

#311E95 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.4% C 0.180 H 279.2°. Best body text is #FFFFFF at 12.00:1 contrast (WCAG AA passes).

Color values

HEX#311E95
RGBrgb(49, 30, 149)
HSLhsl(250, 66%, 35%)
HSVhsv(250, 80%, 58%)
CMYKcmyk(67.1%, 79.9%, 0%, 41.6%)
CIE-LABlab(22.83, 43.74, -61.40)
CIE-LCHlch(22.83, 75.38, 305.46°)
OKLaboklab(35.42% 0.0289 -0.1773)
OKLCHoklch(35.42% 0.18 279.2)
XYZxyz(7.1540, 3.7509, 28.7749)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311E95 #82951E
analogous
#1E4695 #311E95 #6D1E95
triadic
#311E95 #95311E #1E9531
tetradic
#311E95 #951E46 #82951E #1E956D
square
#311E95 #951E46 #82951E #1E956D
split-complementary
#311E95 #956D1E #46951E
monochromatic
#0F092F #201462 #311E95 #4228C8 #6851DC

Accessibility & contrast

On white

12.00
#311E95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#311E95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311E95
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311E95#FFFFFF#000000##FFFFFF
##311E951.0012.001.7512.00
#FFFFFF12.001.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B98
Deuteranopia (green-blind)
#003293
Tritanopia (blue-blind)
#004259
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #311e95;
/* rgb */ color: rgb(49, 30, 149);
/* oklch */ color: oklch(35.4% 0.180 279.2);
Tailwind
colors: {
  custom: {
    50: '#785db5',
    500: '#311e95',
    950: '#000000',
  },
}
SCSS
$custom: #311e95;
$custom-light: #785db5;
$custom-dark: #000000;
JSON
{
  "hex": "#311e95",
  "rgb": {
    "r": 49,
    "g": 30,
    "b": 149
  },
  "hsl": {
    "h": 249.58,
    "s": 66.48,
    "l": 35.098
  },
  "oklch": {
    "l": 0.3542,
    "c": 0.17962,
    "h": 279.2
  },
  "luminance": 0.03751
}

Semantic roles & 50–950 ramp

primary
#311E95
secondary
#ADBF50
accent
#E93ECE
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #311E95

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

Preview Lab → · Contrast checker → · Palette generator →

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