#314F98#314F98

#314F98 is a dark, vivid blue. Relative luminance 0.085; OKLCH L 44.5% C 0.125 H 265.0°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#314F98
RGBrgb(49, 79, 152)
HSLhsl(223, 51%, 39%)
HSVhsv(223, 68%, 60%)
CMYKcmyk(67.8%, 48%, 0%, 40.4%)
CIE-LABlab(35.03, 13.95, -43.36)
CIE-LCHlch(35.03, 45.54, 287.83°)
OKLaboklab(44.47% -0.0109 -0.1241)
OKLCHoklch(44.47% 0.125 265)
XYZxyz(9.7281, 8.5110, 30.8298)
Luminance0.0851 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314F98 #987A31
analogous
#318398 #314F98 #463198
triadic
#314F98 #98314F #4F9831
tetradic
#314F98 #983183 #987A31 #319846
square
#314F98 #983183 #987A31 #319846
split-complementary
#314F98 #984631 #839831
monochromatic
#131F3B #22376A #314F98 #4469C3 #728ED2

Accessibility & contrast

On white

7.77
#314F98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#314F98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314F98
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314F98#FFFFFF#000000##FFFFFF
##314F981.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#29579B
Deuteranopia (green-blind)
#144E96
Tritanopia (blue-blind)
#00606C
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #314f98;
/* rgb */ color: rgb(49, 79, 152);
/* oklch */ color: oklch(44.5% 0.125 265.0);
Tailwind
colors: {
  custom: {
    50: '#757fb7',
    500: '#314f98',
    950: '#000000',
  },
}
SCSS
$custom: #314f98;
$custom-light: #757fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#314f98",
  "rgb": {
    "r": 49,
    "g": 79,
    "b": 152
  },
  "hsl": {
    "h": 222.524,
    "s": 51.244,
    "l": 39.412
  },
  "oklch": {
    "l": 0.44472,
    "c": 0.1246,
    "h": 265
  },
  "luminance": 0.08512
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #314F98

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

Preview Lab → · Contrast checker → · Palette generator →

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