#314D98#314D98

#314D98 is a dark, vivid blue. Relative luminance 0.082; OKLCH L 44.0% C 0.127 H 266.0°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#314D98
RGBrgb(49, 77, 152)
HSLhsl(224, 51%, 39%)
HSVhsv(224, 68%, 60%)
CMYKcmyk(67.8%, 49.3%, 0%, 40.4%)
CIE-LABlab(34.45, 15.28, -44.28)
CIE-LCHlch(34.45, 46.84, 289.04°)
OKLaboklab(44.03% -0.009 -0.1269)
OKLCHoklch(44.03% 0.127 266)
XYZxyz(9.5860, 8.2268, 30.7824)
Luminance0.0823 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314D98 #987C31
analogous
#318198 #314D98 #483198
triadic
#314D98 #98314D #4D9831
tetradic
#314D98 #983181 #987C31 #319848
square
#314D98 #983181 #987C31 #319848
split-complementary
#314D98 #984831 #819831
monochromatic
#131E3B #22366A #314D98 #4466C3 #728CD2

Accessibility & contrast

On white

7.94
#314D98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#314D98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314D98
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314D98#FFFFFF#000000##FFFFFF
##314D981.007.942.657.94
#FFFFFF7.941.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25569B
Deuteranopia (green-blind)
#0C4D96
Tritanopia (blue-blind)
#005E6B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #314d98;
/* rgb */ color: rgb(49, 77, 152);
/* oklch */ color: oklch(44.0% 0.127 266.0);
Tailwind
colors: {
  custom: {
    50: '#757eb7',
    500: '#314d98',
    950: '#000000',
  },
}
SCSS
$custom: #314d98;
$custom-light: #757eb7;
$custom-dark: #000000;
JSON
{
  "hex": "#314d98",
  "rgb": {
    "r": 49,
    "g": 77,
    "b": 152
  },
  "hsl": {
    "h": 223.689,
    "s": 51.244,
    "l": 39.412
  },
  "oklch": {
    "l": 0.44033,
    "c": 0.12719,
    "h": 266
  },
  "luminance": 0.08228
}

Semantic roles & 50–950 ramp

primary
#314D98
secondary
#B9A46B
accent
#B44DDB
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #314D98

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

Preview Lab → · Contrast checker → · Palette generator →

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