#311EA0#311EA0

#311EA0 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.6% C 0.193 H 277.7°. Best body text is #FFFFFF at 11.51:1 contrast (WCAG AA passes).

Color values

HEX#311EA0
RGBrgb(49, 30, 160)
HSLhsl(249, 68%, 37%)
HSVhsv(249, 81%, 63%)
CMYKcmyk(69.4%, 81.3%, 0%, 37.3%)
CIE-LABlab(24.06, 47.12, -66.11)
CIE-LCHlch(24.06, 81.18, 305.48°)
OKLaboklab(36.64% 0.0257 -0.191)
OKLCHoklch(36.64% 0.193 277.7)
XYZxyz(8.0740, 4.1189, 33.6204)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311EA0 #8DA01E
analogous
#1E4CA0 #311EA0 #721EA0
triadic
#311EA0 #A0311E #1EA031
tetradic
#311EA0 #A01E4C #8DA01E #1EA072
square
#311EA0 #A01E4C #8DA01E #1EA072
split-complementary
#311EA0 #A0721E #4CA01E
monochromatic
#110B39 #21146C #311EA0 #4128D4 #6C59E0

Accessibility & contrast

On white

11.51
#311EA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#311EA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311EA0
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311EA0#FFFFFF#000000##FFFFFF
##311EA01.0011.511.8211.51
#FFFFFF11.511.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA4
Deuteranopia (green-blind)
#00349E
Tritanopia (blue-blind)
#004660
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #311ea0;
/* rgb */ color: rgb(49, 30, 160);
/* oklch */ color: oklch(36.6% 0.193 277.7);
Tailwind
colors: {
  custom: {
    50: '#7a5ebd',
    500: '#311ea0',
    950: '#000000',
  },
}
SCSS
$custom: #311ea0;
$custom-light: #7a5ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#311ea0",
  "rgb": {
    "r": 49,
    "g": 30,
    "b": 160
  },
  "hsl": {
    "h": 248.769,
    "s": 68.421,
    "l": 37.255
  },
  "oklch": {
    "l": 0.36638,
    "c": 0.19272,
    "h": 277.7
  },
  "luminance": 0.0412
}

Semantic roles & 50–950 ramp

primary
#311EA0
secondary
#B4C456
accent
#EB3DD2
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #311EA0

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

Preview Lab → · Contrast checker → · Palette generator →

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