#313796#313796

#313796 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.4% C 0.153 H 274.2°. Best body text is #FFFFFF at 9.92:1 contrast (WCAG AA passes).

Color values

HEX#313796
RGBrgb(49, 55, 150)
HSLhsl(236, 51%, 39%)
HSVhsv(236, 67%, 59%)
CMYKcmyk(67.3%, 63.3%, 0%, 41.2%)
CIE-LABlab(28.34, 29.22, -52.96)
CIE-LCHlch(28.34, 60.48, 298.89°)
OKLaboklab(39.41% 0.0112 -0.1527)
OKLCHoklch(39.41% 0.153 274.2)
XYZxyz(8.1360, 5.5866, 29.4978)
Luminance0.0559 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313796 #969031
analogous
#316A96 #313796 #5E3196
triadic
#313796 #963137 #379631
tetradic
#313796 #96316A #969031 #31965E
square
#313796 #96316A #969031 #31965E
split-complementary
#313796 #965E31 #6A9631
monochromatic
#13153A #222668 #313796 #434AC1 #7177D1

Accessibility & contrast

On white

9.92
#313796 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#313796 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313796
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313796#FFFFFF#000000##FFFFFF
##3137961.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004799
Deuteranopia (green-blind)
#003E94
Tritanopia (blue-blind)
#004F61
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #313796;
/* rgb */ color: rgb(49, 55, 150);
/* oklch */ color: oklch(39.4% 0.153 274.2);
Tailwind
colors: {
  custom: {
    50: '#766eb6',
    500: '#313796',
    950: '#000000',
  },
}
SCSS
$custom: #313796;
$custom-light: #766eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#313796",
  "rgb": {
    "r": 49,
    "g": 55,
    "b": 150
  },
  "hsl": {
    "h": 236.436,
    "s": 50.754,
    "l": 39.02
  },
  "oklch": {
    "l": 0.39406,
    "c": 0.15307,
    "h": 274.2
  },
  "luminance": 0.05587
}

Semantic roles & 50–950 ramp

primary
#313796
secondary
#B8B46A
accent
#D24EDA
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #313796

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

Preview Lab → · Contrast checker → · Palette generator →

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