#313797#313797

#313797 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.5% C 0.154 H 274.1°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#313797
RGBrgb(49, 55, 151)
HSLhsl(236, 51%, 39%)
HSVhsv(236, 68%, 59%)
CMYKcmyk(67.5%, 63.6%, 0%, 40.8%)
CIE-LABlab(28.43, 29.58, -53.43)
CIE-LCHlch(28.43, 61.07, 298.97°)
OKLaboklab(39.5% 0.0111 -0.154)
OKLCHoklch(39.5% 0.154 274.1)
XYZxyz(8.2169, 5.6190, 29.9237)
Luminance0.0562 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313797 #979131
analogous
#316A97 #313797 #5E3197
triadic
#313797 #973137 #379731
tetradic
#313797 #97316A #979131 #31975E
square
#313797 #97316A #979131 #31975E
split-complementary
#313797 #975E31 #6A9731
monochromatic
#13153B #222669 #313797 #434BC2 #7177D1

Accessibility & contrast

On white

9.89
#313797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313797
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313797#FFFFFF#000000##FFFFFF
##3137971.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489A
Deuteranopia (green-blind)
#003F95
Tritanopia (blue-blind)
#004F61
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #313797;
/* rgb */ color: rgb(49, 55, 151);
/* oklch */ color: oklch(39.5% 0.154 274.1);
Tailwind
colors: {
  custom: {
    50: '#766eb6',
    500: '#313797',
    950: '#000000',
  },
}
SCSS
$custom: #313797;
$custom-light: #766eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#313797",
  "rgb": {
    "r": 49,
    "g": 55,
    "b": 151
  },
  "hsl": {
    "h": 236.471,
    "s": 51,
    "l": 39.216
  },
  "oklch": {
    "l": 0.39495,
    "c": 0.15445,
    "h": 274.1
  },
  "luminance": 0.0562
}

Semantic roles & 50–950 ramp

primary
#313797
secondary
#B9B46B
accent
#D24DDA
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #313797

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

Preview Lab → · Contrast checker → · Palette generator →

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