#314F79#314F79

#314F79 is a dark, moderate blue. Relative luminance 0.076; OKLCH L 42.5% C 0.079 H 257.0°. Best body text is #FFFFFF at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#314F79
RGBrgb(49, 79, 121)
HSLhsl(215, 42%, 33%)
HSVhsv(215, 60%, 47%)
CMYKcmyk(59.5%, 34.7%, 0%, 52.5%)
CIE-LABlab(33.19, 2.56, -27.27)
CIE-LCHlch(33.19, 27.39, 275.36°)
OKLaboklab(42.46% -0.0178 -0.077)
OKLCHoklch(42.46% 0.079 257)
XYZxyz(7.5126, 7.6248, 19.1613)
Luminance0.0762 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314F79 #795B31
analogous
#317379 #314F79 #373179
triadic
#314F79 #79314F #4F7931
tetradic
#314F79 #793173 #795B31 #317937
square
#314F79 #793173 #795B31 #317937
split-complementary
#314F79 #793731 #737931
monochromatic
#0E1622 #1F334D #314F79 #436BA5 #648BC0

Accessibility & contrast

On white

8.32
#314F79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#314F79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314F79
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314F79#FFFFFF#000000##FFFFFF
##314F791.008.322.538.32
#FFFFFF8.321.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E527B
Deuteranopia (green-blind)
#354B78
Tritanopia (blue-blind)
#00585E
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #314f79;
/* rgb */ color: rgb(49, 79, 121);
/* oklch */ color: oklch(42.5% 0.079 257.0);
Tailwind
colors: {
  custom: {
    50: '#6f80a0',
    500: '#314f79',
    950: '#000000',
  },
}
SCSS
$custom: #314f79;
$custom-light: #6f80a0;
$custom-dark: #000000;
JSON
{
  "hex": "#314f79",
  "rgb": {
    "r": 49,
    "g": 79,
    "b": 121
  },
  "hsl": {
    "h": 215,
    "s": 42.353,
    "l": 33.333
  },
  "oklch": {
    "l": 0.42457,
    "c": 0.07902,
    "h": 257
  },
  "luminance": 0.07625
}

Semantic roles & 50–950 ramp

primary
#314F79
secondary
#A8895E
accent
#9E56D2
background
#F6F7F9
surface
#ECEEF2
border
#C7C9CC
text
#080A0E
muted
#7B7C7E

Preview Lab

Preview with #314F79

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

Preview Lab → · Contrast checker → · Palette generator →

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