#313996#313996

#313996 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.8% C 0.151 H 273.6°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#313996
RGBrgb(49, 57, 150)
HSLhsl(235, 51%, 39%)
HSVhsv(235, 67%, 59%)
CMYKcmyk(67.3%, 62%, 0%, 41.2%)
CIE-LABlab(28.85, 27.90, -52.13)
CIE-LCHlch(28.85, 59.13, 298.16°)
OKLaboklab(39.78% 0.0095 -0.1502)
OKLCHoklch(39.78% 0.151 273.6)
XYZxyz(8.2329, 5.7805, 29.5301)
Luminance0.0578 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313996 #968E31
analogous
#316C96 #313996 #5C3196
triadic
#313996 #963139 #399631
tetradic
#313996 #96316C #968E31 #31965C
square
#313996 #96316C #968E31 #31965C
split-complementary
#313996 #965C31 #6C9631
monochromatic
#13163A #222768 #313996 #434DC1 #7178D1

Accessibility & contrast

On white

9.74
#313996 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#313996 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313996
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313996#FFFFFF#000000##FFFFFF
##3139961.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004999
Deuteranopia (green-blind)
#004094
Tritanopia (blue-blind)
#005062
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #313996;
/* rgb */ color: rgb(49, 57, 150);
/* oklch */ color: oklch(39.8% 0.151 273.6);
Tailwind
colors: {
  custom: {
    50: '#766fb6',
    500: '#313996',
    950: '#000000',
  },
}
SCSS
$custom: #313996;
$custom-light: #766fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#313996",
  "rgb": {
    "r": 49,
    "g": 57,
    "b": 150
  },
  "hsl": {
    "h": 235.248,
    "s": 50.754,
    "l": 39.02
  },
  "oklch": {
    "l": 0.39779,
    "c": 0.15052,
    "h": 273.6
  },
  "luminance": 0.05781
}

Semantic roles & 50–950 ramp

primary
#313996
secondary
#B8B26A
accent
#CF4EDA
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #313996

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

Preview Lab → · Contrast checker → · Palette generator →

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