#314E9D#314E9D

#314E9D is a dark, vivid blue. Relative luminance 0.085; OKLCH L 44.6% C 0.133 H 266.0°. Best body text is #FFFFFF at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#314E9D
RGBrgb(49, 78, 157)
HSLhsl(224, 52%, 40%)
HSVhsv(224, 69%, 62%)
CMYKcmyk(68.8%, 50.3%, 0%, 38.4%)
CIE-LABlab(35.07, 16.49, -46.30)
CIE-LCHlch(35.07, 49.14, 289.60°)
OKLaboklab(44.62% -0.0093 -0.1328)
OKLCHoklch(44.62% 0.133 266)
XYZxyz(10.0747, 8.5351, 33.0082)
Luminance0.0854 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314E9D #9D8031
analogous
#31849D #314E9D #4A319D
triadic
#314E9D #9D314E #4E9D31
tetradic
#314E9D #9D3184 #9D8031 #319D4A
square
#314E9D #9D3184 #9D8031 #319D4A
split-complementary
#314E9D #9D4A31 #849D31
monochromatic
#142040 #22376E #314E9D #4668C5 #758ED4

Accessibility & contrast

On white

7.76
#314E9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #314E9D
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314E9D#FFFFFF#000000##FFFFFF
##314E9D1.007.762.717.76
#FFFFFF7.761.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2258A0
Deuteranopia (green-blind)
#004E9B
Tritanopia (blue-blind)
#00616E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #314e9d;
/* rgb */ color: rgb(49, 78, 157);
/* oklch */ color: oklch(44.6% 0.133 266.0);
Tailwind
colors: {
  custom: {
    50: '#767fba',
    500: '#314e9d',
    950: '#000000',
  },
}
SCSS
$custom: #314e9d;
$custom-light: #767fba;
$custom-dark: #000000;
JSON
{
  "hex": "#314e9d",
  "rgb": {
    "r": 49,
    "g": 78,
    "b": 157
  },
  "hsl": {
    "h": 223.889,
    "s": 52.427,
    "l": 40.392
  },
  "oklch": {
    "l": 0.44616,
    "c": 0.13311,
    "h": 266
  },
  "luminance": 0.08536
}

Semantic roles & 50–950 ramp

primary
#314E9D
secondary
#BCA76E
accent
#B54CDC
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #314E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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