#314F7C#314F7C

#314F7C is a dark, moderate blue. Relative luminance 0.077; OKLCH L 42.6% C 0.083 H 258.3°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#314F7C
RGBrgb(49, 79, 124)
HSLhsl(216, 43%, 34%)
HSVhsv(216, 60%, 49%)
CMYKcmyk(60.5%, 36.3%, 0%, 51.4%)
CIE-LABlab(33.35, 3.63, -28.88)
CIE-LCHlch(33.35, 29.11, 277.17°)
OKLaboklab(42.63% -0.0169 -0.0817)
OKLCHoklch(42.63% 0.083 258.3)
XYZxyz(7.6994, 7.6995, 20.1453)
Luminance0.0770 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314F7C #7C5E31
analogous
#31757C #314F7C #39317C
triadic
#314F7C #7C314F #4F7C31
tetradic
#314F7C #7C3175 #7C5E31 #317C39
square
#314F7C #7C3175 #7C5E31 #317C39
split-complementary
#314F7C #7C3931 #757C31
monochromatic
#0E1724 #203350 #314F7C #426BA8 #658AC2

Accessibility & contrast

On white

8.27
#314F7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #314F7C
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314F7C#FFFFFF#000000##FFFFFF
##314F7C1.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C527E
Deuteranopia (green-blind)
#334B7B
Tritanopia (blue-blind)
#00595F
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #314f7c;
/* rgb */ color: rgb(49, 79, 124);
/* oklch */ color: oklch(42.6% 0.083 258.3);
Tailwind
colors: {
  custom: {
    50: '#7080a2',
    500: '#314f7c',
    950: '#000000',
  },
}
SCSS
$custom: #314f7c;
$custom-light: #7080a2;
$custom-dark: #000000;
JSON
{
  "hex": "#314f7c",
  "rgb": {
    "r": 49,
    "g": 79,
    "b": 124
  },
  "hsl": {
    "h": 216,
    "s": 43.353,
    "l": 33.922
  },
  "oklch": {
    "l": 0.42634,
    "c": 0.08342,
    "h": 258.3
  },
  "luminance": 0.077
}

Semantic roles & 50–950 ramp

primary
#314F7C
secondary
#AA8C5F
accent
#A155D3
background
#F7F7FA
surface
#EDEEF3
border
#C8C9CD
text
#080A0F
muted
#7B7C7F

Preview Lab

Preview with #314F7C

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

Preview Lab → · Contrast checker → · Palette generator →

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