#314D7C#314D7C

#314D7C is a dark, moderate blue. Relative luminance 0.074; OKLCH L 42.2% C 0.086 H 260.2°. Best body text is #FFFFFF at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#314D7C
RGBrgb(49, 77, 124)
HSLhsl(218, 43%, 34%)
HSVhsv(218, 60%, 49%)
CMYKcmyk(60.5%, 37.9%, 0%, 51.4%)
CIE-LABlab(32.73, 4.94, -29.85)
CIE-LCHlch(32.73, 30.26, 279.40°)
OKLaboklab(42.16% -0.0145 -0.0845)
OKLCHoklch(42.16% 0.086 260.2)
XYZxyz(7.5573, 7.4153, 20.0979)
Luminance0.0742 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314D7C #7C6031
analogous
#31737C #314D7C #3B317C
triadic
#314D7C #7C314D #4D7C31
tetradic
#314D7C #7C3173 #7C6031 #317C3B
square
#314D7C #7C3173 #7C6031 #317C3B
split-complementary
#314D7C #7C3B31 #737C31
monochromatic
#0E1724 #203250 #314D7C #4268A8 #6588C2

Accessibility & contrast

On white

8.46
#314D7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #314D7C
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314D7C#FFFFFF#000000##FFFFFF
##314D7C1.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#39517E
Deuteranopia (green-blind)
#304A7B
Tritanopia (blue-blind)
#00575E
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #314d7c;
/* rgb */ color: rgb(49, 77, 124);
/* oklch */ color: oklch(42.2% 0.086 260.2);
Tailwind
colors: {
  custom: {
    50: '#707ea2',
    500: '#314d7c',
    950: '#000000',
  },
}
SCSS
$custom: #314d7c;
$custom-light: #707ea2;
$custom-dark: #000000;
JSON
{
  "hex": "#314d7c",
  "rgb": {
    "r": 49,
    "g": 77,
    "b": 124
  },
  "hsl": {
    "h": 217.6,
    "s": 43.353,
    "l": 33.922
  },
  "oklch": {
    "l": 0.42156,
    "c": 0.08577,
    "h": 260.2
  },
  "luminance": 0.07416
}

Semantic roles & 50–950 ramp

primary
#314D7C
secondary
#AA8E5F
accent
#A455D3
background
#F7F7FA
surface
#EDEEF3
border
#C8C9CD
text
#08090F
muted
#7B7B7F

Preview Lab

Preview with #314D7C

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

Preview Lab → · Contrast checker → · Palette generator →

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