#311FA0#311FA0

#311FA0 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.8% C 0.192 H 277.6°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#311FA0
RGBrgb(49, 31, 160)
HSLhsl(248, 68%, 37%)
HSVhsv(248, 81%, 63%)
CMYKcmyk(69.4%, 80.6%, 0%, 37.3%)
CIE-LABlab(24.23, 46.64, -65.83)
CIE-LCHlch(24.23, 80.68, 305.31°)
OKLaboklab(36.75% 0.0252 -0.1902)
OKLCHoklch(36.75% 0.192 277.6)
XYZxyz(8.0997, 4.1703, 33.6290)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311FA0 #8EA01F
analogous
#1F4EA0 #311FA0 #711FA0
triadic
#311FA0 #A0311F #1FA031
tetradic
#311FA0 #A01F4E #8EA01F #1FA071
square
#311FA0 #A01F4E #8EA01F #1FA071
split-complementary
#311FA0 #A0711F #4EA01F
monochromatic
#120B39 #21156D #311FA0 #4129D3 #6D5ADF

Accessibility & contrast

On white

11.45
#311FA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#311FA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311FA0
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311FA0#FFFFFF#000000##FFFFFF
##311FA01.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA4
Deuteranopia (green-blind)
#00349E
Tritanopia (blue-blind)
#004760
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #311fa0;
/* rgb */ color: rgb(49, 31, 160);
/* oklch */ color: oklch(36.8% 0.192 277.6);
Tailwind
colors: {
  custom: {
    50: '#7a5fbd',
    500: '#311fa0',
    950: '#000000',
  },
}
SCSS
$custom: #311fa0;
$custom-light: #7a5fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#311fa0",
  "rgb": {
    "r": 49,
    "g": 31,
    "b": 160
  },
  "hsl": {
    "h": 248.372,
    "s": 67.539,
    "l": 37.451
  },
  "oklch": {
    "l": 0.36753,
    "c": 0.19188,
    "h": 277.6
  },
  "luminance": 0.04171
}

Semantic roles & 50–950 ramp

primary
#311FA0
secondary
#B4C358
accent
#EA3DD2
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #311FA0

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

Preview Lab → · Contrast checker → · Palette generator →

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