#313696#313696

#313696 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.2% C 0.154 H 274.5°. Best body text is #FFFFFF at 10.01:1 contrast (WCAG AA passes).

Color values

HEX#313696
RGBrgb(49, 54, 150)
HSLhsl(237, 51%, 39%)
HSVhsv(237, 67%, 59%)
CMYKcmyk(67.3%, 64%, 0%, 41.2%)
CIE-LABlab(28.09, 29.87, -53.36)
CIE-LCHlch(28.09, 61.15, 299.24°)
OKLaboklab(39.22% 0.012 -0.1539)
OKLCHoklch(39.22% 0.154 274.5)
XYZxyz(8.0890, 5.4926, 29.4821)
Luminance0.0549 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313696 #969131
analogous
#316996 #313696 #5F3196
triadic
#313696 #963136 #369631
tetradic
#313696 #963169 #969131 #31965F
square
#313696 #963169 #969131 #31965F
split-complementary
#313696 #965F31 #699631
monochromatic
#13153A #222568 #313696 #4349C1 #7176D1

Accessibility & contrast

On white

10.01
#313696 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#313696 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313696
10.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313696#FFFFFF#000000##FFFFFF
##3136961.0010.012.1010.01
#FFFFFF10.011.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.011.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #313696;
/* rgb */ color: rgb(49, 54, 150);
/* oklch */ color: oklch(39.2% 0.154 274.5);
Tailwind
colors: {
  custom: {
    50: '#766db6',
    500: '#313696',
    950: '#000000',
  },
}
SCSS
$custom: #313696;
$custom-light: #766db6;
$custom-dark: #000000;
JSON
{
  "hex": "#313696",
  "rgb": {
    "r": 49,
    "g": 54,
    "b": 150
  },
  "hsl": {
    "h": 237.03,
    "s": 50.754,
    "l": 39.02
  },
  "oklch": {
    "l": 0.39222,
    "c": 0.15434,
    "h": 274.5
  },
  "luminance": 0.05493
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #313696

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

Preview Lab → · Contrast checker → · Palette generator →

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