#314E97#314E97

#314E97 is a dark, vivid blue. Relative luminance 0.083; OKLCH L 44.2% C 0.124 H 265.3°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#314E97
RGBrgb(49, 78, 151)
HSLhsl(223, 51%, 39%)
HSVhsv(223, 68%, 59%)
CMYKcmyk(67.5%, 48.3%, 0%, 40.8%)
CIE-LABlab(34.67, 14.24, -43.32)
CIE-LCHlch(34.67, 45.60, 288.20°)
OKLaboklab(44.18% -0.0101 -0.124)
OKLCHoklch(44.18% 0.124 265.3)
XYZxyz(9.5750, 8.3352, 30.3764)
Luminance0.0834 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314E97 #977A31
analogous
#318197 #314E97 #473197
triadic
#314E97 #97314E #4E9731
tetradic
#314E97 #973181 #977A31 #319747
square
#314E97 #973181 #977A31 #319747
split-complementary
#314E97 #974731 #819731
monochromatic
#131E3B #223669 #314E97 #4367C2 #718DD1

Accessibility & contrast

On white

7.87
#314E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#314E97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314E97
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314E97#FFFFFF#000000##FFFFFF
##314E971.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28569A
Deuteranopia (green-blind)
#134D95
Tritanopia (blue-blind)
#005F6B
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #314e97;
/* rgb */ color: rgb(49, 78, 151);
/* oklch */ color: oklch(44.2% 0.124 265.3);
Tailwind
colors: {
  custom: {
    50: '#757fb6',
    500: '#314e97',
    950: '#000000',
  },
}
SCSS
$custom: #314e97;
$custom-light: #757fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#314e97",
  "rgb": {
    "r": 49,
    "g": 78,
    "b": 151
  },
  "hsl": {
    "h": 222.941,
    "s": 51,
    "l": 39.216
  },
  "oklch": {
    "l": 0.4418,
    "c": 0.12444,
    "h": 265.3
  },
  "luminance": 0.08336
}

Semantic roles & 50–950 ramp

primary
#314E97
secondary
#B9A36B
accent
#B24DDA
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #314E97

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

Preview Lab → · Contrast checker → · Palette generator →

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