#313897#313897

#313897 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.7% C 0.153 H 273.8°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#313897
RGBrgb(49, 56, 151)
HSLhsl(236, 51%, 39%)
HSVhsv(236, 68%, 59%)
CMYKcmyk(67.5%, 62.9%, 0%, 40.8%)
CIE-LABlab(28.68, 28.92, -53.02)
CIE-LCHlch(28.68, 60.39, 298.61°)
OKLaboklab(39.68% 0.0103 -0.1528)
OKLCHoklch(39.68% 0.153 273.8)
XYZxyz(8.2649, 5.7149, 29.9397)
Luminance0.0572 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313897 #979031
analogous
#316B97 #313897 #5D3197
triadic
#313897 #973138 #389731
tetradic
#313897 #97316B #979031 #31975D
square
#313897 #97316B #979031 #31975D
split-complementary
#313897 #975D31 #6B9731
monochromatic
#13163B #222769 #313897 #434CC2 #7178D1

Accessibility & contrast

On white

9.80
#313897 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#313897 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313897
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313897#FFFFFF#000000##FFFFFF
##3138971.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489A
Deuteranopia (green-blind)
#003F95
Tritanopia (blue-blind)
#005062
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #313897;
/* rgb */ color: rgb(49, 56, 151);
/* oklch */ color: oklch(39.7% 0.153 273.8);
Tailwind
colors: {
  custom: {
    50: '#766eb6',
    500: '#313897',
    950: '#000000',
  },
}
SCSS
$custom: #313897;
$custom-light: #766eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#313897",
  "rgb": {
    "r": 49,
    "g": 56,
    "b": 151
  },
  "hsl": {
    "h": 235.882,
    "s": 51,
    "l": 39.216
  },
  "oklch": {
    "l": 0.3968,
    "c": 0.15319,
    "h": 273.8
  },
  "luminance": 0.05716
}

Semantic roles & 50–950 ramp

primary
#313897
secondary
#B9B46B
accent
#D14DDA
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #313897

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

Preview Lab → · Contrast checker → · Palette generator →

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