#311FB4#311FB4

#311FB4 is a dark, highly saturated blue. Relative luminance 0.049; OKLCH L 39.0% C 0.215 H 275.2°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#311FB4
RGBrgb(49, 31, 180)
HSLhsl(247, 71%, 41%)
HSVhsv(247, 83%, 71%)
CMYKcmyk(72.8%, 82.8%, 0%, 29.4%)
CIE-LABlab(26.53, 52.68, -74.09)
CIE-LCHlch(26.53, 90.91, 305.41°)
OKLaboklab(39.02% 0.0195 -0.2142)
OKLCHoklch(39.02% 0.215 275.2)
XYZxyz(9.9921, 4.9272, 43.5956)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311FB4 #A2B41F
analogous
#1F58B4 #311FB4 #7C1FB4
triadic
#311FB4 #B4311F #1FB431
tetradic
#311FB4 #B41F58 #A2B41F #1FB47C
square
#311FB4 #B41F58 #A2B41F #1FB47C
split-complementary
#311FB4 #B47C1F #58B41F
monochromatic
#150D4C #231680 #311FB4 #4834DC #7768E5

Accessibility & contrast

On white

10.58
#311FB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#311FB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311FB4
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311FB4#FFFFFF#000000##FFFFFF
##311FB41.0010.581.9910.58
#FFFFFF10.581.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045B8
Deuteranopia (green-blind)
#0038B2
Tritanopia (blue-blind)
#004F6B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #311fb4;
/* rgb */ color: rgb(49, 31, 180);
/* oklch */ color: oklch(39.0% 0.215 275.2);
Tailwind
colors: {
  custom: {
    50: '#7f60cc',
    500: '#311fb4',
    950: '#000000',
  },
}
SCSS
$custom: #311fb4;
$custom-light: #7f60cc;
$custom-dark: #000000;
JSON
{
  "hex": "#311fb4",
  "rgb": {
    "r": 49,
    "g": 31,
    "b": 180
  },
  "hsl": {
    "h": 247.248,
    "s": 70.616,
    "l": 41.373
  },
  "oklch": {
    "l": 0.39015,
    "c": 0.21507,
    "h": 275.2
  },
  "luminance": 0.04928
}

Semantic roles & 50–950 ramp

primary
#311FB4
secondary
#BECB64
accent
#ED3AD8
background
#F8F5FC
surface
#F0EAF9
border
#CBC6D2
text
#0C0514
muted
#7D7982

Preview Lab

Preview with #311FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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