#314797#314797

#314797 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 42.7% C 0.134 H 268.6°. Best body text is #FFFFFF at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#314797
RGBrgb(49, 71, 151)
HSLhsl(227, 51%, 39%)
HSVhsv(227, 68%, 59%)
CMYKcmyk(67.5%, 53%, 0%, 40.8%)
CIE-LABlab(32.69, 18.92, -46.52)
CIE-LCHlch(32.69, 50.22, 292.13°)
OKLaboklab(42.67% -0.0032 -0.1335)
OKLCHoklch(42.67% 0.134 268.6)
XYZxyz(9.1039, 7.3930, 30.2194)
Luminance0.0739 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314797 #978131
analogous
#317A97 #314797 #4E3197
triadic
#314797 #973147 #479731
tetradic
#314797 #97317A #978131 #31974E
square
#314797 #97317A #978131 #31974E
split-complementary
#314797 #974E31 #7A9731
monochromatic
#131C3B #223169 #314797 #435FC2 #7186D1

Accessibility & contrast

On white

8.47
#314797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#314797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314797
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314797#FFFFFF#000000##FFFFFF
##3147971.008.472.488.47
#FFFFFF8.471.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#15529A
Deuteranopia (green-blind)
#004895
Tritanopia (blue-blind)
#005A68
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #314797;
/* rgb */ color: rgb(49, 71, 151);
/* oklch */ color: oklch(42.7% 0.134 268.6);
Tailwind
colors: {
  custom: {
    50: '#7579b6',
    500: '#314797',
    950: '#000000',
  },
}
SCSS
$custom: #314797;
$custom-light: #7579b6;
$custom-dark: #000000;
JSON
{
  "hex": "#314797",
  "rgb": {
    "r": 49,
    "g": 71,
    "b": 151
  },
  "hsl": {
    "h": 227.059,
    "s": 51,
    "l": 39.216
  },
  "oklch": {
    "l": 0.4267,
    "c": 0.13359,
    "h": 268.6
  },
  "luminance": 0.07394
}

Semantic roles & 50–950 ramp

primary
#314797
secondary
#B9A86B
accent
#BC4DDA
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #314797

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

Preview Lab → · Contrast checker → · Palette generator →

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