#314897#314897

#314897 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 42.9% C 0.132 H 268.2°. Best body text is #FFFFFF at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#314897
RGBrgb(49, 72, 151)
HSLhsl(226, 51%, 39%)
HSVhsv(226, 68%, 59%)
CMYKcmyk(67.5%, 52.3%, 0%, 40.8%)
CIE-LABlab(32.97, 18.25, -46.07)
CIE-LCHlch(32.97, 49.55, 291.61°)
OKLaboklab(42.88% -0.0042 -0.1322)
OKLCHoklch(42.88% 0.132 268.2)
XYZxyz(9.1680, 7.5212, 30.2407)
Luminance0.0752 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314897 #978031
analogous
#317B97 #314897 #4D3197
triadic
#314897 #973148 #489731
tetradic
#314897 #97317B #978031 #31974D
square
#314897 #97317B #978031 #31974D
split-complementary
#314897 #974D31 #7B9731
monochromatic
#131C3B #223269 #314897 #4360C2 #7187D1

Accessibility & contrast

On white

8.39
#314897 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#314897 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314897
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314897#FFFFFF#000000##FFFFFF
##3148971.008.392.508.39
#FFFFFF8.391.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#19529A
Deuteranopia (green-blind)
#004995
Tritanopia (blue-blind)
#005B68
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #314897;
/* rgb */ color: rgb(49, 72, 151);
/* oklch */ color: oklch(42.9% 0.132 268.2);
Tailwind
colors: {
  custom: {
    50: '#757ab6',
    500: '#314897',
    950: '#000000',
  },
}
SCSS
$custom: #314897;
$custom-light: #757ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#314897",
  "rgb": {
    "r": 49,
    "g": 72,
    "b": 151
  },
  "hsl": {
    "h": 226.471,
    "s": 51,
    "l": 39.216
  },
  "oklch": {
    "l": 0.42881,
    "c": 0.13227,
    "h": 268.2
  },
  "luminance": 0.07522
}

Semantic roles & 50–950 ramp

primary
#314897
secondary
#B9A76B
accent
#BB4DDA
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #314897

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

Preview Lab → · Contrast checker → · Palette generator →

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