#314F7B#314F7B

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

Color values

HEX#314F7B
RGBrgb(49, 79, 123)
HSLhsl(216, 43%, 34%)
HSVhsv(216, 60%, 48%)
CMYKcmyk(60.2%, 35.8%, 0%, 51.8%)
CIE-LABlab(33.30, 3.27, -28.34)
CIE-LCHlch(33.30, 28.53, 276.59°)
OKLaboklab(42.58% -0.0172 -0.0801)
OKLCHoklch(42.58% 0.082 257.9)
XYZxyz(7.6365, 7.6743, 19.8139)
Luminance0.0767 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314F7B #7B5D31
analogous
#31747B #314F7B #38317B
triadic
#314F7B #7B314F #4F7B31
tetradic
#314F7B #7B3174 #7B5D31 #317B38
square
#314F7B #7B3174 #7B5D31 #317B38
split-complementary
#314F7B #7B3831 #747B31
monochromatic
#0E1723 #20334F #314F7B #426BA7 #658AC2

Accessibility & contrast

On white

8.28
#314F7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #314F7B
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314F7B#FFFFFF#000000##FFFFFF
##314F7B1.008.282.538.28
#FFFFFF8.281.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #314f7b;
/* rgb */ color: rgb(49, 79, 123);
/* oklch */ color: oklch(42.6% 0.082 257.9);
Tailwind
colors: {
  custom: {
    50: '#7080a1',
    500: '#314f7b',
    950: '#000000',
  },
}
SCSS
$custom: #314f7b;
$custom-light: #7080a1;
$custom-dark: #000000;
JSON
{
  "hex": "#314f7b",
  "rgb": {
    "r": 49,
    "g": 79,
    "b": 123
  },
  "hsl": {
    "h": 215.676,
    "s": 43.023,
    "l": 33.725
  },
  "oklch": {
    "l": 0.42575,
    "c": 0.08195,
    "h": 257.9
  },
  "luminance": 0.07675
}

Semantic roles & 50–950 ramp

primary
#314F7B
secondary
#A98B5F
accent
#A055D3
background
#F7F7F9
surface
#EDEEF2
border
#C8C9CC
text
#080A0F
muted
#7B7C7E

Preview Lab

Preview with #314F7B

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

Preview Lab → · Contrast checker → · Palette generator →

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