#314F8B#314F8B

#314F8B is a dark, moderate blue. Relative luminance 0.081; OKLCH L 43.6% C 0.106 H 262.8°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#314F8B
RGBrgb(49, 79, 139)
HSLhsl(220, 48%, 37%)
HSVhsv(220, 65%, 55%)
CMYKcmyk(64.7%, 43.2%, 0%, 45.5%)
CIE-LABlab(34.21, 9.11, -36.76)
CIE-LCHlch(34.21, 37.87, 283.92°)
OKLaboklab(43.58% -0.0133 -0.1047)
OKLCHoklch(43.58% 0.106 262.8)
XYZxyz(8.7212, 8.1082, 25.5265)
Luminance0.0811 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314F8B #8B6D31
analogous
#317C8B #314F8B #40318B
triadic
#314F8B #8B314F #4F8B31
tetradic
#314F8B #8B317C #8B6D31 #318B40
square
#314F8B #8B317C #8B6D31 #318B40
split-complementary
#314F8B #8B4031 #7C8B31
monochromatic
#111C31 #21355E #314F8B #4169B8 #6B8BCB

Accessibility & contrast

On white

8.01
#314F8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #314F8B
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314F8B#FFFFFF#000000##FFFFFF
##314F8B1.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#34558D
Deuteranopia (green-blind)
#264D8A
Tritanopia (blue-blind)
#005D66
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #314f8b;
/* rgb */ color: rgb(49, 79, 139);
/* oklch */ color: oklch(43.6% 0.106 262.8);
Tailwind
colors: {
  custom: {
    50: '#727fad',
    500: '#314f8b',
    950: '#000000',
  },
}
SCSS
$custom: #314f8b;
$custom-light: #727fad;
$custom-dark: #000000;
JSON
{
  "hex": "#314f8b",
  "rgb": {
    "r": 49,
    "g": 79,
    "b": 139
  },
  "hsl": {
    "h": 220,
    "s": 47.872,
    "l": 36.863
  },
  "oklch": {
    "l": 0.43579,
    "c": 0.10557,
    "h": 262.8
  },
  "luminance": 0.08109
}

Semantic roles & 50–950 ramp

primary
#314F8B
secondary
#B29965
accent
#AA50D7
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #314F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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