#314F9B#314F9B

#314F9B is a dark, vivid blue. Relative luminance 0.086; OKLCH L 44.7% C 0.129 H 265.3°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#314F9B
RGBrgb(49, 79, 155)
HSLhsl(223, 52%, 40%)
HSVhsv(223, 68%, 61%)
CMYKcmyk(68.4%, 49%, 0%, 39.2%)
CIE-LABlab(35.22, 15.07, -44.85)
CIE-LCHlch(35.22, 47.31, 288.57°)
OKLaboklab(44.69% -0.0105 -0.1285)
OKLCHoklch(44.69% 0.129 265.3)
XYZxyz(9.9769, 8.6105, 32.1402)
Luminance0.0861 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314F9B #9B7D31
analogous
#31849B #314F9B #48319B
triadic
#314F9B #9B314F #4F9B31
tetradic
#314F9B #9B3184 #9B7D31 #319B48
square
#314F9B #9B3184 #9B7D31 #319B48
split-complementary
#314F9B #9B4831 #849B31
monochromatic
#14203E #22376D #314F9B #4569C4 #738ED3

Accessibility & contrast

On white

7.71
#314F9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#314F9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314F9B
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314F9B#FFFFFF#000000##FFFFFF
##314F9B1.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26589E
Deuteranopia (green-blind)
#0D4E99
Tritanopia (blue-blind)
#00616D
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #314f9b;
/* rgb */ color: rgb(49, 79, 155);
/* oklch */ color: oklch(44.7% 0.129 265.3);
Tailwind
colors: {
  custom: {
    50: '#757fb9',
    500: '#314f9b',
    950: '#000000',
  },
}
SCSS
$custom: #314f9b;
$custom-light: #757fb9;
$custom-dark: #000000;
JSON
{
  "hex": "#314f9b",
  "rgb": {
    "r": 49,
    "g": 79,
    "b": 155
  },
  "hsl": {
    "h": 223.019,
    "s": 51.961,
    "l": 40
  },
  "oklch": {
    "l": 0.44687,
    "c": 0.12895,
    "h": 265.3
  },
  "luminance": 0.08611
}

Semantic roles & 50–950 ramp

primary
#314F9B
secondary
#BBA56D
accent
#B34CDB
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #314F9B

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

Preview Lab → · Contrast checker → · Palette generator →

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