#313697#313697

#313697 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.3% C 0.156 H 274.4°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#313697
RGBrgb(49, 54, 151)
HSLhsl(237, 51%, 39%)
HSVhsv(237, 68%, 59%)
CMYKcmyk(67.5%, 64.2%, 0%, 40.8%)
CIE-LABlab(28.18, 30.23, -53.84)
CIE-LCHlch(28.18, 61.74, 299.31°)
OKLaboklab(39.31% 0.0119 -0.1552)
OKLCHoklch(39.31% 0.156 274.4)
XYZxyz(8.1699, 5.5249, 29.9080)
Luminance0.0553 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313697 #979231
analogous
#316997 #313697 #5F3197
triadic
#313697 #973136 #369731
tetradic
#313697 #973169 #979231 #31975F
square
#313697 #973169 #979231 #31975F
split-complementary
#313697 #975F31 #699731
monochromatic
#13153B #222569 #313697 #4349C2 #7176D1

Accessibility & contrast

On white

9.98
#313697 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#313697 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313697
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313697#FFFFFF#000000##FFFFFF
##3136971.009.982.119.98
#FFFFFF9.981.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479A
Deuteranopia (green-blind)
#003E95
Tritanopia (blue-blind)
#004F61
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #313697;
/* rgb */ color: rgb(49, 54, 151);
/* oklch */ color: oklch(39.3% 0.156 274.4);
Tailwind
colors: {
  custom: {
    50: '#766db6',
    500: '#313697',
    950: '#000000',
  },
}
SCSS
$custom: #313697;
$custom-light: #766db6;
$custom-dark: #000000;
JSON
{
  "hex": "#313697",
  "rgb": {
    "r": 49,
    "g": 54,
    "b": 151
  },
  "hsl": {
    "h": 237.059,
    "s": 51,
    "l": 39.216
  },
  "oklch": {
    "l": 0.39312,
    "c": 0.15571,
    "h": 274.4
  },
  "luminance": 0.05526
}

Semantic roles & 50–950 ramp

primary
#313697
secondary
#B9B56B
accent
#D44DDA
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #313697

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

Preview Lab → · Contrast checker → · Palette generator →

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