#311EB3#311EB3

#311EB3 is a dark, highly saturated blue. Relative luminance 0.048; OKLCH L 38.8% C 0.215 H 275.4°. Best body text is #FFFFFF at 10.68:1 contrast (WCAG AA passes).

Color values

HEX#311EB3
RGBrgb(49, 30, 179)
HSLhsl(248, 71%, 41%)
HSVhsv(248, 83%, 70%)
CMYKcmyk(72.6%, 83.2%, 0%, 29.8%)
CIE-LABlab(26.26, 52.82, -73.93)
CIE-LCHlch(26.26, 90.86, 305.54°)
OKLaboklab(38.8% 0.0201 -0.2137)
OKLCHoklch(38.8% 0.215 275.4)
XYZxyz(9.8649, 4.8352, 43.0525)
Luminance0.0484 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311EB3 #A0B31E
analogous
#1E55B3 #311EB3 #7B1EB3
triadic
#311EB3 #B3311E #1EB331
tetradic
#311EB3 #B31E55 #A0B31E #1EB37B
square
#311EB3 #B31E55 #A0B31E #1EB37B
split-complementary
#311EB3 #B37B1E #55B31E
monochromatic
#140C4A #23157F #311EB3 #4732DD #7666E5

Accessibility & contrast

On white

10.68
#311EB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#311EB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311EB3
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311EB3#FFFFFF#000000##FFFFFF
##311EB31.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044B7
Deuteranopia (green-blind)
#0037B1
Tritanopia (blue-blind)
#004E6B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #311eb3;
/* rgb */ color: rgb(49, 30, 179);
/* oklch */ color: oklch(38.8% 0.215 275.4);
Tailwind
colors: {
  custom: {
    50: '#7f60cb',
    500: '#311eb3',
    950: '#000000',
  },
}
SCSS
$custom: #311eb3;
$custom-light: #7f60cb;
$custom-dark: #000000;
JSON
{
  "hex": "#311eb3",
  "rgb": {
    "r": 49,
    "g": 30,
    "b": 179
  },
  "hsl": {
    "h": 247.651,
    "s": 71.292,
    "l": 40.98
  },
  "oklch": {
    "l": 0.38798,
    "c": 0.21466,
    "h": 275.4
  },
  "luminance": 0.04836
}

Semantic roles & 50–950 ramp

primary
#311EB3
secondary
#BDCB62
accent
#EE3AD7
background
#F8F5FC
surface
#F0EAF9
border
#CBC6D2
text
#0C0514
muted
#7D7982

Preview Lab

Preview with #311EB3

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

Preview Lab → · Contrast checker → · Palette generator →

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