#313496#313496

#313496 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.9% C 0.157 H 275.0°. Best body text is #FFFFFF at 10.18:1 contrast (WCAG AA passes).

Color values

HEX#313496
RGBrgb(49, 52, 150)
HSLhsl(238, 51%, 39%)
HSVhsv(238, 67%, 59%)
CMYKcmyk(67.3%, 65.3%, 0%, 41.2%)
CIE-LABlab(27.60, 31.17, -54.17)
CIE-LCHlch(27.60, 62.50, 299.91°)
OKLaboklab(38.86% 0.0136 -0.1562)
OKLCHoklch(38.86% 0.157 275)
XYZxyz(7.9978, 5.3103, 29.4518)
Luminance0.0531 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313496 #969331
analogous
#316796 #313496 #613196
triadic
#313496 #963134 #349631
tetradic
#313496 #963167 #969331 #319661
square
#313496 #963167 #969331 #319661
split-complementary
#313496 #966131 #679631
monochromatic
#13143A #222468 #313496 #4346C1 #7174D1

Accessibility & contrast

On white

10.18
#313496 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#313496 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313496
10.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313496#FFFFFF#000000##FFFFFF
##3134961.0010.182.0610.18
#FFFFFF10.181.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004699
Deuteranopia (green-blind)
#003D94
Tritanopia (blue-blind)
#004D60
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #313496;
/* rgb */ color: rgb(49, 52, 150);
/* oklch */ color: oklch(38.9% 0.157 275.0);
Tailwind
colors: {
  custom: {
    50: '#766cb6',
    500: '#313496',
    950: '#000000',
  },
}
SCSS
$custom: #313496;
$custom-light: #766cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#313496",
  "rgb": {
    "r": 49,
    "g": 52,
    "b": 150
  },
  "hsl": {
    "h": 238.218,
    "s": 50.754,
    "l": 39.02
  },
  "oklch": {
    "l": 0.3886,
    "c": 0.15684,
    "h": 275
  },
  "luminance": 0.05311
}

Semantic roles & 50–950 ramp

primary
#313496
secondary
#B8B66A
accent
#D64EDA
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #313496

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

Preview Lab → · Contrast checker → · Palette generator →

#313496 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva