#314D8A#314D8A

#314D8A is a dark, moderate blue. Relative luminance 0.078; OKLCH L 43.1% C 0.107 H 263.9°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#314D8A
RGBrgb(49, 77, 138)
HSLhsl(221, 48%, 37%)
HSVhsv(221, 64%, 54%)
CMYKcmyk(64.5%, 44.2%, 0%, 45.9%)
CIE-LABlab(33.55, 10.07, -37.19)
CIE-LCHlch(33.55, 38.53, 285.14°)
OKLaboklab(43.05% -0.0113 -0.106)
OKLCHoklch(43.05% 0.107 263.9)
XYZxyz(8.5064, 7.7949, 25.0961)
Luminance0.0780 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314D8A #8A6E31
analogous
#317A8A #314D8A #42318A
triadic
#314D8A #8A314D #4D8A31
tetradic
#314D8A #8A317A #8A6E31 #318A42
square
#314D8A #8A317A #8A6E31 #318A42
split-complementary
#314D8A #8A4231 #7A8A31
monochromatic
#111B30 #21345D #314D8A #4166B7 #6B89CA

Accessibility & contrast

On white

8.21
#314D8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#314D8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314D8A
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314D8A#FFFFFF#000000##FFFFFF
##314D8A1.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#31538C
Deuteranopia (green-blind)
#234B89
Tritanopia (blue-blind)
#005B64
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #314d8a;
/* rgb */ color: rgb(49, 77, 138);
/* oklch */ color: oklch(43.1% 0.107 263.9);
Tailwind
colors: {
  custom: {
    50: '#727eac',
    500: '#314d8a',
    950: '#000000',
  },
}
SCSS
$custom: #314d8a;
$custom-light: #727eac;
$custom-dark: #000000;
JSON
{
  "hex": "#314d8a",
  "rgb": {
    "r": 49,
    "g": 77,
    "b": 138
  },
  "hsl": {
    "h": 221.124,
    "s": 47.594,
    "l": 36.667
  },
  "oklch": {
    "l": 0.43054,
    "c": 0.10663,
    "h": 263.9
  },
  "luminance": 0.07796
}

Semantic roles & 50–950 ramp

primary
#314D8A
secondary
#B29A65
accent
#AD51D7
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #314D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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