#314F87#314F87

#314F87 is a dark, moderate blue. Relative luminance 0.080; OKLCH L 43.3% C 0.100 H 261.8°. Best body text is #FFFFFF at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#314F87
RGBrgb(49, 79, 135)
HSLhsl(219, 47%, 36%)
HSVhsv(219, 64%, 53%)
CMYKcmyk(63.7%, 41.5%, 0%, 47.1%)
CIE-LABlab(33.97, 7.63, -34.69)
CIE-LCHlch(33.97, 35.52, 282.41°)
OKLaboklab(43.32% -0.0142 -0.0987)
OKLCHoklch(43.32% 0.1 261.8)
XYZxyz(8.4343, 7.9934, 24.0154)
Luminance0.0799 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314F87 #876931
analogous
#317A87 #314F87 #3E3187
triadic
#314F87 #87314F #4F8731
tetradic
#314F87 #87317A #876931 #31873E
square
#314F87 #87317A #876931 #31873E
split-complementary
#314F87 #873E31 #7A8731
monochromatic
#101A2D #21355A #314F87 #4169B4 #6A8BC9

Accessibility & contrast

On white

8.08
#314F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#314F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314F87
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314F87#FFFFFF#000000##FFFFFF
##314F871.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#365489
Deuteranopia (green-blind)
#2A4C86
Tritanopia (blue-blind)
#005C64
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #314f87;
/* rgb */ color: rgb(49, 79, 135);
/* oklch */ color: oklch(43.3% 0.100 261.8);
Tailwind
colors: {
  custom: {
    50: '#727faa',
    500: '#314f87',
    950: '#000000',
  },
}
SCSS
$custom: #314f87;
$custom-light: #727faa;
$custom-dark: #000000;
JSON
{
  "hex": "#314f87",
  "rgb": {
    "r": 49,
    "g": 79,
    "b": 135
  },
  "hsl": {
    "h": 219.07,
    "s": 46.739,
    "l": 36.078
  },
  "oklch": {
    "l": 0.43318,
    "c": 0.09967,
    "h": 261.8
  },
  "luminance": 0.07994
}

Semantic roles & 50–950 ramp

primary
#314F87
secondary
#B09564
accent
#A851D6
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #314F87

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

Preview Lab → · Contrast checker → · Palette generator →

#314F87 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva