#311FA7#311FA7

#311FA7 is a dark, highly saturated blue. Relative luminance 0.044; OKLCH L 37.5% C 0.200 H 276.7°. Best body text is #FFFFFF at 11.14:1 contrast (WCAG AA passes).

Color values

HEX#311FA7
RGBrgb(49, 31, 167)
HSLhsl(248, 69%, 39%)
HSVhsv(248, 81%, 65%)
CMYKcmyk(70.7%, 81.4%, 0%, 34.5%)
CIE-LABlab(25.02, 48.78, -68.77)
CIE-LCHlch(25.02, 84.31, 305.35°)
OKLaboklab(37.54% 0.0232 -0.1987)
OKLCHoklch(37.54% 0.2 276.7)
XYZxyz(8.7294, 4.4222, 36.9452)
Luminance0.0442 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311FA7 #95A71F
analogous
#1F51A7 #311FA7 #751FA7
triadic
#311FA7 #A7311F #1FA731
tetradic
#311FA7 #A71F51 #95A71F #1FA775
square
#311FA7 #A71F51 #95A71F #1FA775
split-complementary
#311FA7 #A7751F #51A71F
monochromatic
#130C40 #221573 #311FA7 #422BD8 #705FE1

Accessibility & contrast

On white

11.14
#311FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#311FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311FA7
11.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311FA7#FFFFFF#000000##FFFFFF
##311FA71.0011.141.8811.14
#FFFFFF11.141.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041AB
Deuteranopia (green-blind)
#0035A5
Tritanopia (blue-blind)
#004964
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #311fa7;
/* rgb */ color: rgb(49, 31, 167);
/* oklch */ color: oklch(37.5% 0.200 276.7);
Tailwind
colors: {
  custom: {
    50: '#7c5fc3',
    500: '#311fa7',
    950: '#000000',
  },
}
SCSS
$custom: #311fa7;
$custom-light: #7c5fc3;
$custom-dark: #000000;
JSON
{
  "hex": "#311fa7",
  "rgb": {
    "r": 49,
    "g": 31,
    "b": 167
  },
  "hsl": {
    "h": 247.941,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.37537,
    "c": 0.2001,
    "h": 276.7
  },
  "luminance": 0.04423
}

Semantic roles & 50–950 ramp

primary
#311FA7
secondary
#B8C65C
accent
#EC3CD4
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #311FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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