#314F8E#314F8E

#314F8E is a dark, moderate blue. Relative luminance 0.082; OKLCH L 43.8% C 0.110 H 263.4°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#314F8E
RGBrgb(49, 79, 142)
HSLhsl(221, 49%, 37%)
HSVhsv(221, 65%, 56%)
CMYKcmyk(65.5%, 44.4%, 0%, 44.3%)
CIE-LABlab(34.39, 10.22, -38.30)
CIE-LCHlch(34.39, 39.64, 284.94°)
OKLaboklab(43.78% -0.0127 -0.1093)
OKLCHoklch(43.78% 0.11 263.4)
XYZxyz(8.9434, 8.1971, 26.6968)
Luminance0.0820 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314F8E #8E7031
analogous
#317E8E #314F8E #41318E
triadic
#314F8E #8E314F #4F8E31
tetradic
#314F8E #8E317E #8E7031 #318E41
square
#314F8E #8E317E #8E7031 #318E41
split-complementary
#314F8E #8E4131 #7E8E31
monochromatic
#121C33 #213661 #314F8E #4168BB #6D8CCD

Accessibility & contrast

On white

7.96
#314F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#314F8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314F8E
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314F8E#FFFFFF#000000##FFFFFF
##314F8E1.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#325590
Deuteranopia (green-blind)
#234D8D
Tritanopia (blue-blind)
#005D67
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #314f8e;
/* rgb */ color: rgb(49, 79, 142);
/* oklch */ color: oklch(43.8% 0.110 263.4);
Tailwind
colors: {
  custom: {
    50: '#737faf',
    500: '#314f8e',
    950: '#000000',
  },
}
SCSS
$custom: #314f8e;
$custom-light: #737faf;
$custom-dark: #000000;
JSON
{
  "hex": "#314f8e",
  "rgb": {
    "r": 49,
    "g": 79,
    "b": 142
  },
  "hsl": {
    "h": 220.645,
    "s": 48.691,
    "l": 37.451
  },
  "oklch": {
    "l": 0.43779,
    "c": 0.10999,
    "h": 263.4
  },
  "luminance": 0.08198
}

Semantic roles & 50–950 ramp

primary
#314F8E
secondary
#B49B67
accent
#AC50D8
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#090A10
muted
#7B7C7F

Preview Lab

Preview with #314F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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