#314F9D#314F9D

#314F9D is a dark, vivid blue. Relative luminance 0.087; OKLCH L 44.8% C 0.132 H 265.5°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#314F9D
RGBrgb(49, 79, 157)
HSLhsl(223, 52%, 40%)
HSVhsv(223, 69%, 62%)
CMYKcmyk(68.8%, 49.7%, 0%, 38.4%)
CIE-LABlab(35.36, 15.82, -45.84)
CIE-LCHlch(35.36, 48.49, 289.04°)
OKLaboklab(44.83% -0.0102 -0.1314)
OKLCHoklch(44.83% 0.132 265.5)
XYZxyz(10.1463, 8.6783, 33.0321)
Luminance0.0868 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314F9D #9D7F31
analogous
#31859D #314F9D #49319D
triadic
#314F9D #9D314F #4F9D31
tetradic
#314F9D #9D3185 #9D7F31 #319D49
square
#314F9D #9D3185 #9D7F31 #319D49
split-complementary
#314F9D #9D4931 #859D31
monochromatic
#142040 #22386E #314F9D #4669C5 #758FD4

Accessibility & contrast

On white

7.68
#314F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#314F9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314F9D
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314F9D#FFFFFF#000000##FFFFFF
##314F9D1.007.682.747.68
#FFFFFF7.681.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2458A0
Deuteranopia (green-blind)
#064E9B
Tritanopia (blue-blind)
#00616E
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #314f9d;
/* rgb */ color: rgb(49, 79, 157);
/* oklch */ color: oklch(44.8% 0.132 265.5);
Tailwind
colors: {
  custom: {
    50: '#767fba',
    500: '#314f9d',
    950: '#000000',
  },
}
SCSS
$custom: #314f9d;
$custom-light: #767fba;
$custom-dark: #000000;
JSON
{
  "hex": "#314f9d",
  "rgb": {
    "r": 49,
    "g": 79,
    "b": 157
  },
  "hsl": {
    "h": 223.333,
    "s": 52.427,
    "l": 40.392
  },
  "oklch": {
    "l": 0.44832,
    "c": 0.13183,
    "h": 265.5
  },
  "luminance": 0.08679
}

Semantic roles & 50–950 ramp

primary
#314F9D
secondary
#BCA66E
accent
#B44CDC
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #314F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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