#311CD2#311CD2

#311CD2 is a dark, highly saturated blue. Relative luminance 0.061; OKLCH L 42.3% C 0.250 H 272.7°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#311CD2
RGBrgb(49, 28, 210)
HSLhsl(247, 76%, 47%)
HSVhsv(247, 87%, 82%)
CMYKcmyk(76.7%, 86.7%, 0%, 17.6%)
CIE-LABlab(29.75, 62.45, -86.39)
CIE-LCHlch(29.75, 106.60, 305.86°)
OKLaboklab(42.26% 0.0118 -0.2497)
OKLCHoklch(42.26% 0.25 272.7)
XYZxyz(13.3109, 6.1352, 61.4430)
Luminance0.0614 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311CD2 #BDD21C
analogous
#1C62D2 #311CD2 #8C1CD2
triadic
#311CD2 #D2311C #1CD231
tetradic
#311CD2 #D21C62 #BDD21C #1CD28C
square
#311CD2 #D21C62 #BDD21C #1CD28C
split-complementary
#311CD2 #D28C1C #62D21C
monochromatic
#180E66 #24159C #311CD2 #5845E6 #887BED

Accessibility & contrast

On white

9.43
#311CD2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#311CD2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311CD2
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311CD2#FFFFFF#000000##FFFFFF
##311CD21.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004ED7
Deuteranopia (green-blind)
#003DCF
Tritanopia (blue-blind)
#005B7D
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #311cd2;
/* rgb */ color: rgb(49, 28, 210);
/* oklch */ color: oklch(42.3% 0.250 272.7);
Tailwind
colors: {
  custom: {
    50: '#8661e2',
    500: '#311cd2',
    950: '#000000',
  },
}
SCSS
$custom: #311cd2;
$custom-light: #8661e2;
$custom-dark: #000000;
JSON
{
  "hex": "#311cd2",
  "rgb": {
    "r": 49,
    "g": 28,
    "b": 210
  },
  "hsl": {
    "h": 246.923,
    "s": 76.471,
    "l": 46.667
  },
  "oklch": {
    "l": 0.4226,
    "c": 0.25003,
    "h": 272.7
  },
  "luminance": 0.06137
}

Semantic roles & 50–950 ramp

primary
#311CD2
secondary
#CAD575
accent
#F335DD
background
#F9F6FE
surface
#F2EBFC
border
#CCC6D5
text
#0D0516
muted
#7E7A84

Preview Lab

Preview with #311CD2

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

Preview Lab → · Contrast checker → · Palette generator →

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