#314A71#314A71

#314A71 is a dark, moderate blue. Relative luminance 0.067; OKLCH L 40.8% C 0.073 H 259.0°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#314A71
RGBrgb(49, 74, 113)
HSLhsl(217, 40%, 32%)
HSVhsv(217, 57%, 44%)
CMYKcmyk(56.6%, 34.5%, 0%, 55.7%)
CIE-LABlab(31.21, 2.99, -25.37)
CIE-LCHlch(31.21, 25.55, 276.72°)
OKLaboklab(40.78% -0.0139 -0.0715)
OKLCHoklch(40.78% 0.073 259)
XYZxyz(6.6950, 6.7423, 16.5682)
Luminance0.0674 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314A71 #715831
analogous
#316A71 #314A71 #383171
triadic
#314A71 #71314A #4A7131
tetradic
#314A71 #71316A #715831 #317138
square
#314A71 #71316A #715831 #317138
split-complementary
#314A71 #713831 #6A7131
monochromatic
#0C121C #1E2E46 #314A71 #44669C #6284BB

Accessibility & contrast

On white

8.94
#314A71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#314A71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314A71
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314A71#FFFFFF#000000##FFFFFF
##314A711.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A4D73
Deuteranopia (green-blind)
#334770
Tritanopia (blue-blind)
#0C5358
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #314a71;
/* rgb */ color: rgb(49, 74, 113);
/* oklch */ color: oklch(40.8% 0.073 259.0);
Tailwind
colors: {
  custom: {
    50: '#6e7c9a',
    500: '#314a71',
    950: '#000000',
  },
}
SCSS
$custom: #314a71;
$custom-light: #6e7c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#314a71",
  "rgb": {
    "r": 49,
    "g": 74,
    "b": 113
  },
  "hsl": {
    "h": 216.563,
    "s": 39.506,
    "l": 31.765
  },
  "oklch": {
    "l": 0.40777,
    "c": 0.07286,
    "h": 259
  },
  "luminance": 0.06743
}

Semantic roles & 50–950 ramp

primary
#314A71
secondary
#A2875C
accent
#A158CF
background
#F6F7F9
surface
#ECEEF2
border
#C7C9CC
text
#07090E
muted
#7A7B7E

Preview Lab

Preview with #314A71

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

Preview Lab → · Contrast checker → · Palette generator →

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