#314F8A#314F8A

#314F8A is a dark, moderate blue. Relative luminance 0.081; OKLCH L 43.5% C 0.104 H 262.5°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#314F8A
RGBrgb(49, 79, 138)
HSLhsl(220, 48%, 37%)
HSVhsv(220, 64%, 54%)
CMYKcmyk(64.5%, 42.8%, 0%, 45.9%)
CIE-LABlab(34.15, 8.74, -36.24)
CIE-LCHlch(34.15, 37.28, 283.56°)
OKLaboklab(43.51% -0.0135 -0.1032)
OKLCHoklch(43.51% 0.104 262.5)
XYZxyz(8.6484, 8.0791, 25.1435)
Luminance0.0808 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314F8A #8A6C31
analogous
#317C8A #314F8A #3F318A
triadic
#314F8A #8A314F #4F8A31
tetradic
#314F8A #8A317C #8A6C31 #318A3F
square
#314F8A #8A317C #8A6C31 #318A3F
split-complementary
#314F8A #8A3F31 #7C8A31
monochromatic
#111B30 #21355D #314F8A #4169B7 #6B8BCA

Accessibility & contrast

On white

8.03
#314F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#314F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314F8A
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314F8A#FFFFFF#000000##FFFFFF
##314F8A1.008.032.628.03
#FFFFFF8.031.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#34558C
Deuteranopia (green-blind)
#274C89
Tritanopia (blue-blind)
#005C65
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #314f8a;
/* rgb */ color: rgb(49, 79, 138);
/* oklch */ color: oklch(43.5% 0.104 262.5);
Tailwind
colors: {
  custom: {
    50: '#727fac',
    500: '#314f8a',
    950: '#000000',
  },
}
SCSS
$custom: #314f8a;
$custom-light: #727fac;
$custom-dark: #000000;
JSON
{
  "hex": "#314f8a",
  "rgb": {
    "r": 49,
    "g": 79,
    "b": 138
  },
  "hsl": {
    "h": 219.775,
    "s": 47.594,
    "l": 36.667
  },
  "oklch": {
    "l": 0.43513,
    "c": 0.1041,
    "h": 262.5
  },
  "luminance": 0.0808
}

Semantic roles & 50–950 ramp

primary
#314F8A
secondary
#B29865
accent
#AA51D7
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #314F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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