#314D87#314D87

#314D87 is a dark, moderate blue. Relative luminance 0.077; OKLCH L 42.9% C 0.102 H 263.3°. Best body text is #FFFFFF at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#314D87
RGBrgb(49, 77, 135)
HSLhsl(220, 47%, 36%)
HSVhsv(220, 64%, 53%)
CMYKcmyk(63.7%, 43%, 0%, 47.1%)
CIE-LABlab(33.37, 8.96, -35.64)
CIE-LCHlch(33.37, 36.75, 284.11°)
OKLaboklab(42.86% -0.0119 -0.1015)
OKLCHoklch(42.86% 0.102 263.3)
XYZxyz(8.2922, 7.7093, 23.9680)
Luminance0.0771 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314D87 #876B31
analogous
#317887 #314D87 #403187
triadic
#314D87 #87314D #4D8731
tetradic
#314D87 #873178 #876B31 #318740
square
#314D87 #873178 #876B31 #318740
split-complementary
#314D87 #874031 #788731
monochromatic
#101A2D #21335A #314D87 #4167B4 #6A89C9

Accessibility & contrast

On white

8.26
#314D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#314D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314D87
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314D87#FFFFFF#000000##FFFFFF
##314D871.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#335389
Deuteranopia (green-blind)
#274B86
Tritanopia (blue-blind)
#005A63
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #314d87;
/* rgb */ color: rgb(49, 77, 135);
/* oklch */ color: oklch(42.9% 0.102 263.3);
Tailwind
colors: {
  custom: {
    50: '#727eaa',
    500: '#314d87',
    950: '#000000',
  },
}
SCSS
$custom: #314d87;
$custom-light: #727eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#314d87",
  "rgb": {
    "r": 49,
    "g": 77,
    "b": 135
  },
  "hsl": {
    "h": 220.465,
    "s": 46.739,
    "l": 36.078
  },
  "oklch": {
    "l": 0.42855,
    "c": 0.10218,
    "h": 263.3
  },
  "luminance": 0.0771
}

Semantic roles & 50–950 ramp

primary
#314D87
secondary
#B09764
accent
#AB51D6
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #314D87

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

Preview Lab → · Contrast checker → · Palette generator →

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