#311BA7#311BA7

#311BA7 is a dark, highly saturated blue. Relative luminance 0.042; OKLCH L 37.1% C 0.203 H 277.0°. Best body text is #FFFFFF at 11.38:1 contrast (WCAG AA passes).

Color values

HEX#311BA7
RGBrgb(49, 27, 167)
HSLhsl(249, 72%, 38%)
HSVhsv(249, 84%, 65%)
CMYKcmyk(70.7%, 83.8%, 0%, 34.5%)
CIE-LABlab(24.41, 50.58, -69.79)
CIE-LCHlch(24.41, 86.19, 305.93°)
OKLaboklab(37.11% 0.0248 -0.2016)
OKLCHoklch(37.11% 0.203 277)
XYZxyz(8.6313, 4.2261, 36.9126)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311BA7 #91A71B
analogous
#1B4BA7 #311BA7 #771BA7
triadic
#311BA7 #A7311B #1BA731
tetradic
#311BA7 #A71B4B #91A71B #1BA777
square
#311BA7 #A71B4B #91A71B #1BA777
split-complementary
#311BA7 #A7771B #4BA71B
monochromatic
#120A3E #221272 #311BA7 #4124DC #6E58E4

Accessibility & contrast

On white

11.38
#311BA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#311BA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311BA7
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311BA7#FFFFFF#000000##FFFFFF
##311BA71.0011.381.8511.38
#FFFFFF11.381.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FAB
Deuteranopia (green-blind)
#0034A5
Tritanopia (blue-blind)
#004863
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #311ba7;
/* rgb */ color: rgb(49, 27, 167);
/* oklch */ color: oklch(37.1% 0.203 277.0);
Tailwind
colors: {
  custom: {
    50: '#7c5dc3',
    500: '#311ba7',
    950: '#000000',
  },
}
SCSS
$custom: #311ba7;
$custom-light: #7c5dc3;
$custom-dark: #000000;
JSON
{
  "hex": "#311ba7",
  "rgb": {
    "r": 49,
    "g": 27,
    "b": 167
  },
  "hsl": {
    "h": 249.429,
    "s": 72.165,
    "l": 38.039
  },
  "oklch": {
    "l": 0.37112,
    "c": 0.20317,
    "h": 277
  },
  "luminance": 0.04227
}

Semantic roles & 50–950 ramp

primary
#311BA7
secondary
#B6C856
accent
#EF39D2
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0413
muted
#7C7982

Preview Lab

Preview with #311BA7

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

Preview Lab → · Contrast checker → · Palette generator →

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