#311FA9#311FA9

#311FA9 is a dark, highly saturated blue. Relative luminance 0.045; OKLCH L 37.8% C 0.202 H 276.4°. Best body text is #FFFFFF at 11.05:1 contrast (WCAG AA passes).

Color values

HEX#311FA9
RGBrgb(49, 31, 169)
HSLhsl(248, 69%, 39%)
HSVhsv(248, 82%, 66%)
CMYKcmyk(71%, 81.7%, 0%, 33.7%)
CIE-LABlab(25.25, 49.38, -69.60)
CIE-LCHlch(25.25, 85.34, 305.36°)
OKLaboklab(37.76% 0.0227 -0.2012)
OKLCHoklch(37.76% 0.202 276.4)
XYZxyz(8.9157, 4.4967, 37.9265)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311FA9 #97A91F
analogous
#1F52A9 #311FA9 #761FA9
triadic
#311FA9 #A9311F #1FA931
tetradic
#311FA9 #A91F52 #97A91F #1FA976
square
#311FA9 #A91F52 #97A91F #1FA976
split-complementary
#311FA9 #A9761F #52A91F
monochromatic
#130C42 #221675 #311FA9 #432DD8 #7160E2

Accessibility & contrast

On white

11.05
#311FA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#311FA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311FA9
11.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311FA9#FFFFFF#000000##FFFFFF
##311FA91.0011.051.9011.05
#FFFFFF11.051.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041AD
Deuteranopia (green-blind)
#0036A7
Tritanopia (blue-blind)
#004A65
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #311fa9;
/* rgb */ color: rgb(49, 31, 169);
/* oklch */ color: oklch(37.8% 0.202 276.4);
Tailwind
colors: {
  custom: {
    50: '#7c5fc4',
    500: '#311fa9',
    950: '#000000',
  },
}
SCSS
$custom: #311fa9;
$custom-light: #7c5fc4;
$custom-dark: #000000;
JSON
{
  "hex": "#311fa9",
  "rgb": {
    "r": 49,
    "g": 31,
    "b": 169
  },
  "hsl": {
    "h": 247.826,
    "s": 69,
    "l": 39.216
  },
  "oklch": {
    "l": 0.37762,
    "c": 0.20243,
    "h": 276.4
  },
  "luminance": 0.04498
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #311FA9

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

Preview Lab → · Contrast checker → · Palette generator →

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