#311CA0#311CA0

#311CA0 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.4% C 0.194 H 277.9°. Best body text is #FFFFFF at 11.64:1 contrast (WCAG AA passes).

Color values

HEX#311CA0
RGBrgb(49, 28, 160)
HSLhsl(250, 70%, 37%)
HSVhsv(250, 83%, 63%)
CMYKcmyk(69.4%, 82.5%, 0%, 37.3%)
CIE-LABlab(23.74, 48.06, -66.64)
CIE-LCHlch(23.74, 82.16, 305.80°)
OKLaboklab(36.42% 0.0266 -0.1925)
OKLCHoklch(36.42% 0.194 277.9)
XYZxyz(8.0250, 4.0208, 33.6041)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311CA0 #8BA01C
analogous
#1C49A0 #311CA0 #731CA0
triadic
#311CA0 #A0311C #1CA031
tetradic
#311CA0 #A01C49 #8BA01C #1CA073
square
#311CA0 #A01C49 #8BA01C #1CA073
split-complementary
#311CA0 #A0731C #49A01C
monochromatic
#110A38 #21136C #311CA0 #4125D4 #6B55E1

Accessibility & contrast

On white

11.64
#311CA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#311CA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311CA0
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311CA0#FFFFFF#000000##FFFFFF
##311CA01.0011.641.8011.64
#FFFFFF11.641.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA4
Deuteranopia (green-blind)
#00339E
Tritanopia (blue-blind)
#00455F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #311ca0;
/* rgb */ color: rgb(49, 28, 160);
/* oklch */ color: oklch(36.4% 0.194 277.9);
Tailwind
colors: {
  custom: {
    50: '#7b5dbd',
    500: '#311ca0',
    950: '#000000',
  },
}
SCSS
$custom: #311ca0;
$custom-light: #7b5dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#311ca0",
  "rgb": {
    "r": 49,
    "g": 28,
    "b": 160
  },
  "hsl": {
    "h": 249.545,
    "s": 70.213,
    "l": 36.863
  },
  "oklch": {
    "l": 0.36416,
    "c": 0.19433,
    "h": 277.9
  },
  "luminance": 0.04022
}

Semantic roles & 50–950 ramp

primary
#311CA0
secondary
#B2C453
accent
#ED3BD1
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #311CA0

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

Preview Lab → · Contrast checker → · Palette generator →

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