#314F97#314F97

#314F97 is a dark, vivid blue. Relative luminance 0.085; OKLCH L 44.4% C 0.123 H 264.8°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#314F97
RGBrgb(49, 79, 151)
HSLhsl(222, 51%, 39%)
HSVhsv(222, 68%, 59%)
CMYKcmyk(67.5%, 47.7%, 0%, 40.8%)
CIE-LABlab(34.96, 13.57, -42.86)
CIE-LCHlch(34.96, 44.95, 287.57°)
OKLaboklab(44.4% -0.0111 -0.1226)
OKLCHoklch(44.4% 0.123 264.8)
XYZxyz(9.6466, 8.4784, 30.4003)
Luminance0.0848 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314F97 #977931
analogous
#318297 #314F97 #463197
triadic
#314F97 #97314F #4F9731
tetradic
#314F97 #973182 #977931 #319746
square
#314F97 #973182 #977931 #319746
split-complementary
#314F97 #974631 #829731
monochromatic
#131F3B #223769 #314F97 #4368C2 #718ED1

Accessibility & contrast

On white

7.79
#314F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #314F97
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314F97#FFFFFF#000000##FFFFFF
##314F971.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A579A
Deuteranopia (green-blind)
#164E96
Tritanopia (blue-blind)
#00606B
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #314f97;
/* rgb */ color: rgb(49, 79, 151);
/* oklch */ color: oklch(44.4% 0.123 264.8);
Tailwind
colors: {
  custom: {
    50: '#757fb6',
    500: '#314f97',
    950: '#000000',
  },
}
SCSS
$custom: #314f97;
$custom-light: #757fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#314f97",
  "rgb": {
    "r": 49,
    "g": 79,
    "b": 151
  },
  "hsl": {
    "h": 222.353,
    "s": 51,
    "l": 39.216
  },
  "oklch": {
    "l": 0.44401,
    "c": 0.12315,
    "h": 264.8
  },
  "luminance": 0.08479
}

Semantic roles & 50–950 ramp

primary
#314F97
secondary
#B9A26B
accent
#B14DDA
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #314F97

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

Preview Lab → · Contrast checker → · Palette generator →

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