#314C98#314C98

#314C98 is a dark, vivid blue. Relative luminance 0.081; OKLCH L 43.8% C 0.128 H 266.4°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#314C98
RGBrgb(49, 76, 152)
HSLhsl(224, 51%, 39%)
HSVhsv(224, 68%, 60%)
CMYKcmyk(67.8%, 50%, 0%, 40.4%)
CIE-LABlab(34.17, 15.95, -44.74)
CIE-LCHlch(34.17, 47.50, 289.62°)
OKLaboklab(43.82% -0.008 -0.1282)
OKLCHoklch(43.82% 0.128 266.4)
XYZxyz(9.5166, 8.0879, 30.7593)
Luminance0.0809 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314C98 #987D31
analogous
#318098 #314C98 #4A3198
triadic
#314C98 #98314C #4C9831
tetradic
#314C98 #983180 #987D31 #31984A
square
#314C98 #983180 #987D31 #31984A
split-complementary
#314C98 #984A31 #809831
monochromatic
#131E3B #22356A #314C98 #4465C3 #728BD2

Accessibility & contrast

On white

8.02
#314C98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#314C98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314C98
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314C98#FFFFFF#000000##FFFFFF
##314C981.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23559B
Deuteranopia (green-blind)
#064C96
Tritanopia (blue-blind)
#005E6A
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #314c98;
/* rgb */ color: rgb(49, 76, 152);
/* oklch */ color: oklch(43.8% 0.128 266.4);
Tailwind
colors: {
  custom: {
    50: '#757db7',
    500: '#314c98',
    950: '#000000',
  },
}
SCSS
$custom: #314c98;
$custom-light: #757db7;
$custom-dark: #000000;
JSON
{
  "hex": "#314c98",
  "rgb": {
    "r": 49,
    "g": 76,
    "b": 152
  },
  "hsl": {
    "h": 224.272,
    "s": 51.244,
    "l": 39.412
  },
  "oklch": {
    "l": 0.43815,
    "c": 0.12849,
    "h": 266.4
  },
  "luminance": 0.08089
}

Semantic roles & 50–950 ramp

primary
#314C98
secondary
#B9A56B
accent
#B64DDB
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #314C98

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

Preview Lab → · Contrast checker → · Palette generator →

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