#311FA8#311FA8

#311FA8 is a dark, highly saturated blue. Relative luminance 0.045; OKLCH L 37.6% C 0.201 H 276.5°. Best body text is #FFFFFF at 11.10:1 contrast (WCAG AA passes).

Color values

HEX#311FA8
RGBrgb(49, 31, 168)
HSLhsl(248, 69%, 39%)
HSVhsv(248, 82%, 66%)
CMYKcmyk(70.8%, 81.5%, 0%, 34.1%)
CIE-LABlab(25.14, 49.08, -69.19)
CIE-LCHlch(25.14, 84.83, 305.35°)
OKLaboklab(37.65% 0.0229 -0.2)
OKLCHoklch(37.65% 0.201 276.5)
XYZxyz(8.8222, 4.4593, 37.4340)
Luminance0.0446 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311FA8 #96A81F
analogous
#1F52A8 #311FA8 #761FA8
triadic
#311FA8 #A8311F #1FA831
tetradic
#311FA8 #A81F52 #96A81F #1FA876
square
#311FA8 #A81F52 #96A81F #1FA876
split-complementary
#311FA8 #A8761F #52A81F
monochromatic
#130C41 #221574 #311FA8 #432CD8 #7160E2

Accessibility & contrast

On white

11.10
#311FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#311FA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311FA8
11.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311FA8#FFFFFF#000000##FFFFFF
##311FA81.0011.101.8911.10
#FFFFFF11.101.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041AC
Deuteranopia (green-blind)
#0036A6
Tritanopia (blue-blind)
#004A64
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #311fa8;
/* rgb */ color: rgb(49, 31, 168);
/* oklch */ color: oklch(37.6% 0.201 276.5);
Tailwind
colors: {
  custom: {
    50: '#7c5fc3',
    500: '#311fa8',
    950: '#000000',
  },
}
SCSS
$custom: #311fa8;
$custom-light: #7c5fc3;
$custom-dark: #000000;
JSON
{
  "hex": "#311fa8",
  "rgb": {
    "r": 49,
    "g": 31,
    "b": 168
  },
  "hsl": {
    "h": 247.883,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.37649,
    "c": 0.20127,
    "h": 276.5
  },
  "luminance": 0.0446
}

Semantic roles & 50–950 ramp

primary
#311FA8
secondary
#B8C65D
accent
#EC3CD5
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #311FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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