#314F8F#314F8F

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

Color values

HEX#314F8F
RGBrgb(49, 79, 143)
HSLhsl(221, 49%, 38%)
HSVhsv(221, 66%, 56%)
CMYKcmyk(65.7%, 44.8%, 0%, 43.9%)
CIE-LABlab(34.45, 10.59, -38.81)
CIE-LCHlch(34.45, 40.23, 285.26°)
OKLaboklab(43.85% -0.0125 -0.1108)
OKLCHoklch(43.85% 0.111 263.6)
XYZxyz(9.0188, 8.2273, 27.0940)
Luminance0.0823 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314F8F #8F7131
analogous
#317E8F #314F8F #42318F
triadic
#314F8F #8F314F #4F8F31
tetradic
#314F8F #8F317E #8F7131 #318F42
square
#314F8F #8F317E #8F7131 #318F42
split-complementary
#314F8F #8F4231 #7E8F31
monochromatic
#121D34 #213661 #314F8F #4168BD #6D8CCD

Accessibility & contrast

On white

7.94
#314F8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#314F8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314F8F
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314F8F#FFFFFF#000000##FFFFFF
##314F8F1.007.942.657.94
#FFFFFF7.941.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#315691
Deuteranopia (green-blind)
#224D8E
Tritanopia (blue-blind)
#005E68
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #314f8f;
/* rgb */ color: rgb(49, 79, 143);
/* oklch */ color: oklch(43.8% 0.111 263.6);
Tailwind
colors: {
  custom: {
    50: '#737fb0',
    500: '#314f8f',
    950: '#000000',
  },
}
SCSS
$custom: #314f8f;
$custom-light: #737fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#314f8f",
  "rgb": {
    "r": 49,
    "g": 79,
    "b": 143
  },
  "hsl": {
    "h": 220.851,
    "s": 48.958,
    "l": 37.647
  },
  "oklch": {
    "l": 0.43847,
    "c": 0.11146,
    "h": 263.6
  },
  "luminance": 0.08228
}

Semantic roles & 50–950 ramp

primary
#314F8F
secondary
#B59C67
accent
#AD4FD9
background
#F7F7FA
surface
#EDEEF5
border
#C8C9CF
text
#090A10
muted
#7B7C7F

Preview Lab

Preview with #314F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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