#314E98#314E98

#314E98 is a dark, vivid blue. Relative luminance 0.084; OKLCH L 44.3% C 0.126 H 265.5°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#314E98
RGBrgb(49, 78, 152)
HSLhsl(223, 51%, 39%)
HSVhsv(223, 68%, 60%)
CMYKcmyk(67.8%, 48.7%, 0%, 40.4%)
CIE-LABlab(34.74, 14.61, -43.82)
CIE-LCHlch(34.74, 46.19, 288.44°)
OKLaboklab(44.25% -0.0099 -0.1255)
OKLCHoklch(44.25% 0.126 265.5)
XYZxyz(9.6565, 8.3678, 30.8059)
Luminance0.0837 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314E98 #987B31
analogous
#318298 #314E98 #483198
triadic
#314E98 #98314E #4E9831
tetradic
#314E98 #983182 #987B31 #319848
square
#314E98 #983182 #987B31 #319848
split-complementary
#314E98 #984831 #829831
monochromatic
#131F3B #22366A #314E98 #4467C3 #728DD2

Accessibility & contrast

On white

7.85
#314E98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #314E98
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314E98#FFFFFF#000000##FFFFFF
##314E981.007.852.677.85
#FFFFFF7.851.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27579B
Deuteranopia (green-blind)
#104D96
Tritanopia (blue-blind)
#005F6B
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #314e98;
/* rgb */ color: rgb(49, 78, 152);
/* oklch */ color: oklch(44.3% 0.126 265.5);
Tailwind
colors: {
  custom: {
    50: '#757fb7',
    500: '#314e98',
    950: '#000000',
  },
}
SCSS
$custom: #314e98;
$custom-light: #757fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#314e98",
  "rgb": {
    "r": 49,
    "g": 78,
    "b": 152
  },
  "hsl": {
    "h": 223.107,
    "s": 51.244,
    "l": 39.412
  },
  "oklch": {
    "l": 0.44252,
    "c": 0.12589,
    "h": 265.5
  },
  "luminance": 0.08369
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #314E98

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

Preview Lab → · Contrast checker → · Palette generator →

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