#311DA0#311DA0

#311DA0 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.5% C 0.194 H 277.8°. Best body text is #FFFFFF at 11.58:1 contrast (WCAG AA passes).

Color values

HEX#311DA0
RGBrgb(49, 29, 160)
HSLhsl(249, 69%, 37%)
HSVhsv(249, 82%, 63%)
CMYKcmyk(69.4%, 81.9%, 0%, 37.3%)
CIE-LABlab(23.90, 47.59, -66.38)
CIE-LCHlch(23.90, 81.68, 305.64°)
OKLaboklab(36.53% 0.0261 -0.1918)
OKLCHoklch(36.53% 0.194 277.8)
XYZxyz(8.0491, 4.0690, 33.6121)
Luminance0.0407 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311DA0 #8CA01D
analogous
#1D4BA0 #311DA0 #721DA0
triadic
#311DA0 #A0311D #1DA031
tetradic
#311DA0 #A01D4B #8CA01D #1DA072
square
#311DA0 #A01D4B #8CA01D #1DA072
split-complementary
#311DA0 #A0721D #4BA01D
monochromatic
#110A38 #21146C #311DA0 #4126D4 #6C57E1

Accessibility & contrast

On white

11.58
#311DA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#311DA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311DA0
11.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311DA0#FFFFFF#000000##FFFFFF
##311DA01.0011.581.8111.58
#FFFFFF11.581.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.581.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #311da0;
/* rgb */ color: rgb(49, 29, 160);
/* oklch */ color: oklch(36.5% 0.194 277.8);
Tailwind
colors: {
  custom: {
    50: '#7a5ebd',
    500: '#311da0',
    950: '#000000',
  },
}
SCSS
$custom: #311da0;
$custom-light: #7a5ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#311da0",
  "rgb": {
    "r": 49,
    "g": 29,
    "b": 160
  },
  "hsl": {
    "h": 249.16,
    "s": 69.312,
    "l": 37.059
  },
  "oklch": {
    "l": 0.36525,
    "c": 0.19354,
    "h": 277.8
  },
  "luminance": 0.0407
}

Semantic roles & 50–950 ramp

primary
#311DA0
secondary
#B3C455
accent
#EC3CD1
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #311DA0

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

Preview Lab → · Contrast checker → · Palette generator →

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