#311EA9#311EA9

#311EA9 is a dark, highly saturated blue. Relative luminance 0.044; OKLCH L 37.7% C 0.203 H 276.5°. Best body text is #FFFFFF at 11.12:1 contrast (WCAG AA passes).

Color values

HEX#311EA9
RGBrgb(49, 30, 169)
HSLhsl(248, 70%, 39%)
HSVhsv(248, 82%, 66%)
CMYKcmyk(71%, 82.2%, 0%, 33.7%)
CIE-LABlab(25.09, 49.84, -69.86)
CIE-LCHlch(25.09, 85.82, 305.51°)
OKLaboklab(37.65% 0.0231 -0.2019)
OKLCHoklch(37.65% 0.203 276.5)
XYZxyz(8.8900, 4.4453, 37.9179)
Luminance0.0445 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311EA9 #96A91E
analogous
#1E51A9 #311EA9 #771EA9
triadic
#311EA9 #A9311E #1EA931
tetradic
#311EA9 #A91E51 #96A91E #1EA977
square
#311EA9 #A91E51 #96A91E #1EA977
split-complementary
#311EA9 #A9771E #51A91E
monochromatic
#130C41 #221575 #311EA9 #432BD9 #715FE3

Accessibility & contrast

On white

11.12
#311EA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311EA9
11.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311EA9#FFFFFF#000000##FFFFFF
##311EA91.0011.121.8911.12
#FFFFFF11.121.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.121.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #311ea9;
/* rgb */ color: rgb(49, 30, 169);
/* oklch */ color: oklch(37.7% 0.203 276.5);
Tailwind
colors: {
  custom: {
    50: '#7c5fc4',
    500: '#311ea9',
    950: '#000000',
  },
}
SCSS
$custom: #311ea9;
$custom-light: #7c5fc4;
$custom-dark: #000000;
JSON
{
  "hex": "#311ea9",
  "rgb": {
    "r": 49,
    "g": 30,
    "b": 169
  },
  "hsl": {
    "h": 248.201,
    "s": 69.849,
    "l": 39.02
  },
  "oklch": {
    "l": 0.37653,
    "c": 0.20321,
    "h": 276.5
  },
  "luminance": 0.04446
}

Semantic roles & 50–950 ramp

primary
#311EA9
secondary
#B8C75C
accent
#ED3BD4
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #311EA9

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

Preview Lab → · Contrast checker → · Palette generator →

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