#314F99#314F99

#314F99 is a dark, vivid blue. Relative luminance 0.085; OKLCH L 44.5% C 0.126 H 265.1°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#314F99
RGBrgb(49, 79, 153)
HSLhsl(223, 51%, 40%)
HSVhsv(223, 68%, 60%)
CMYKcmyk(68%, 48.4%, 0%, 40%)
CIE-LABlab(35.09, 14.32, -43.86)
CIE-LCHlch(35.09, 46.13, 288.09°)
OKLaboklab(44.54% -0.0108 -0.1256)
OKLCHoklch(44.54% 0.126 265.1)
XYZxyz(9.8104, 8.5439, 31.2629)
Luminance0.0854 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314F99 #997B31
analogous
#318399 #314F99 #473199
triadic
#314F99 #99314F #4F9931
tetradic
#314F99 #993183 #997B31 #319947
square
#314F99 #993183 #997B31 #319947
split-complementary
#314F99 #994731 #839931
monochromatic
#131F3C #22376B #314F99 #4469C3 #728ED2

Accessibility & contrast

On white

7.75
#314F99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#314F99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314F99
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314F99#FFFFFF#000000##FFFFFF
##314F991.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#29589C
Deuteranopia (green-blind)
#124E97
Tritanopia (blue-blind)
#00606C
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #314f99;
/* rgb */ color: rgb(49, 79, 153);
/* oklch */ color: oklch(44.5% 0.126 265.1);
Tailwind
colors: {
  custom: {
    50: '#757fb7',
    500: '#314f99',
    950: '#000000',
  },
}
SCSS
$custom: #314f99;
$custom-light: #757fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#314f99",
  "rgb": {
    "r": 49,
    "g": 79,
    "b": 153
  },
  "hsl": {
    "h": 222.692,
    "s": 51.485,
    "l": 39.608
  },
  "oklch": {
    "l": 0.44543,
    "c": 0.12605,
    "h": 265.1
  },
  "luminance": 0.08545
}

Semantic roles & 50–950 ramp

primary
#314F99
secondary
#BAA36C
accent
#B24DDB
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #314F99

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

Preview Lab → · Contrast checker → · Palette generator →

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