#314D7B#314D7B

#314D7B is a dark, moderate blue. Relative luminance 0.074; OKLCH L 42.1% C 0.084 H 259.9°. Best body text is #FFFFFF at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#314D7B
RGBrgb(49, 77, 123)
HSLhsl(217, 43%, 34%)
HSVhsv(217, 60%, 48%)
CMYKcmyk(60.2%, 37.4%, 0%, 51.8%)
CIE-LABlab(32.68, 4.58, -29.32)
CIE-LCHlch(32.68, 29.67, 278.88°)
OKLaboklab(42.1% -0.0148 -0.083)
OKLCHoklch(42.1% 0.084 259.9)
XYZxyz(7.4944, 7.3902, 19.7666)
Luminance0.0739 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314D7B #7B5F31
analogous
#31727B #314D7B #3A317B
triadic
#314D7B #7B314D #4D7B31
tetradic
#314D7B #7B3172 #7B5F31 #317B3A
square
#314D7B #7B3172 #7B5F31 #317B3A
split-complementary
#314D7B #7B3A31 #727B31
monochromatic
#0E1623 #20324F #314D7B #4268A7 #6588C2

Accessibility & contrast

On white

8.47
#314D7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#314D7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##314D7B#FFFFFF#000000##FFFFFF
##314D7B1.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)
#3A517D
Deuteranopia (green-blind)
#304A7A
Tritanopia (blue-blind)
#00575E
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #314d7b;
/* rgb */ color: rgb(49, 77, 123);
/* oklch */ color: oklch(42.1% 0.084 259.9);
Tailwind
colors: {
  custom: {
    50: '#707ea1',
    500: '#314d7b',
    950: '#000000',
  },
}
SCSS
$custom: #314d7b;
$custom-light: #707ea1;
$custom-dark: #000000;
JSON
{
  "hex": "#314d7b",
  "rgb": {
    "r": 49,
    "g": 77,
    "b": 123
  },
  "hsl": {
    "h": 217.297,
    "s": 43.023,
    "l": 33.725
  },
  "oklch": {
    "l": 0.42095,
    "c": 0.08428,
    "h": 259.9
  },
  "luminance": 0.07391
}

Semantic roles & 50–950 ramp

primary
#314D7B
secondary
#A98D5F
accent
#A355D3
background
#F7F7F9
surface
#EDEEF2
border
#C8C9CC
text
#08090F
muted
#7B7B7E

Preview Lab

Preview with #314D7B

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

Preview Lab → · Contrast checker → · Palette generator →

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