#314F96#314F96

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

Color values

HEX#314F96
RGBrgb(49, 79, 150)
HSLhsl(222, 51%, 39%)
HSVhsv(222, 67%, 59%)
CMYKcmyk(67.3%, 47.3%, 0%, 41.2%)
CIE-LABlab(34.90, 13.20, -42.35)
CIE-LCHlch(34.90, 44.36, 287.31°)
OKLaboklab(44.33% -0.0113 -0.1212)
OKLCHoklch(44.33% 0.122 264.7)
XYZxyz(9.5657, 8.4460, 29.9744)
Luminance0.0845 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314F96 #967831
analogous
#318296 #314F96 #463196
triadic
#314F96 #96314F #4F9631
tetradic
#314F96 #963182 #967831 #319646
square
#314F96 #963182 #967831 #319646
split-complementary
#314F96 #964631 #829631
monochromatic
#131E3A #223768 #314F96 #4368C1 #718DD1

Accessibility & contrast

On white

7.81
#314F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#314F96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314F96
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314F96#FFFFFF#000000##FFFFFF
##314F961.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B5799
Deuteranopia (green-blind)
#184E95
Tritanopia (blue-blind)
#005F6B
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #314f96;
/* rgb */ color: rgb(49, 79, 150);
/* oklch */ color: oklch(44.3% 0.122 264.7);
Tailwind
colors: {
  custom: {
    50: '#747fb5',
    500: '#314f96',
    950: '#000000',
  },
}
SCSS
$custom: #314f96;
$custom-light: #747fb5;
$custom-dark: #000000;
JSON
{
  "hex": "#314f96",
  "rgb": {
    "r": 49,
    "g": 79,
    "b": 150
  },
  "hsl": {
    "h": 222.178,
    "s": 50.754,
    "l": 39.02
  },
  "oklch": {
    "l": 0.4433,
    "c": 0.1217,
    "h": 264.7
  },
  "luminance": 0.08447
}

Semantic roles & 50–950 ramp

primary
#314F96
secondary
#B8A16A
accent
#B04EDA
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #314F96

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

Preview Lab → · Contrast checker → · Palette generator →

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