#311DC9#311DC9

#311DC9 is a dark, highly saturated blue. Relative luminance 0.057; OKLCH L 41.3% C 0.240 H 273.4°. Best body text is #FFFFFF at 9.77:1 contrast (WCAG AA passes).

Color values

HEX#311DC9
RGBrgb(49, 29, 201)
HSLhsl(247, 75%, 45%)
HSVhsv(247, 86%, 79%)
CMYKcmyk(75.6%, 85.6%, 0%, 21.2%)
CIE-LABlab(28.77, 59.57, -82.78)
CIE-LCHlch(28.77, 101.99, 305.74°)
OKLaboklab(41.27% 0.0141 -0.2393)
OKLCHoklch(41.27% 0.24 273.4)
XYZxyz(12.2451, 5.7474, 55.7110)
Luminance0.0575 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311DC9 #B5C91D
analogous
#1D5FC9 #311DC9 #871DC9
triadic
#311DC9 #C9311D #1DC931
tetradic
#311DC9 #C91D5F #B5C91D #1DC987
square
#311DC9 #C91D5F #B5C91D #1DC987
split-complementary
#311DC9 #C9871D #5FC91D
monochromatic
#170E5E #241594 #311DC9 #5340E3 #8375EB

Accessibility & contrast

On white

9.77
#311DC9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#311DC9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311DC9
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311DC9#FFFFFF#000000##FFFFFF
##311DC91.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BCD
Deuteranopia (green-blind)
#003CC6
Tritanopia (blue-blind)
#005777
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #311dc9;
/* rgb */ color: rgb(49, 29, 201);
/* oklch */ color: oklch(41.3% 0.240 273.4);
Tailwind
colors: {
  custom: {
    50: '#8461db',
    500: '#311dc9',
    950: '#000000',
  },
}
SCSS
$custom: #311dc9;
$custom-light: #8461db;
$custom-dark: #000000;
JSON
{
  "hex": "#311dc9",
  "rgb": {
    "r": 49,
    "g": 29,
    "b": 201
  },
  "hsl": {
    "h": 246.977,
    "s": 74.783,
    "l": 45.098
  },
  "oklch": {
    "l": 0.41274,
    "c": 0.23974,
    "h": 273.4
  },
  "luminance": 0.05749
}

Semantic roles & 50–950 ramp

primary
#311DC9
secondary
#C7D270
accent
#F136DC
background
#F9F6FD
surface
#F1EBFB
border
#CBC6D4
text
#0D0515
muted
#7E7A83

Preview Lab

Preview with #311DC9

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

Preview Lab → · Contrast checker → · Palette generator →

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