#314F95#314F95

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

Color values

HEX#314F95
RGBrgb(49, 79, 149)
HSLhsl(222, 51%, 39%)
HSVhsv(222, 67%, 58%)
CMYKcmyk(67.1%, 47%, 0%, 41.6%)
CIE-LABlab(34.83, 12.83, -41.85)
CIE-LCHlch(34.83, 43.77, 287.04°)
OKLaboklab(44.26% -0.0114 -0.1197)
OKLCHoklch(44.26% 0.12 264.6)
XYZxyz(9.4855, 8.4140, 29.5521)
Luminance0.0842 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314F95 #957731
analogous
#318195 #314F95 #453195
triadic
#314F95 #95314F #4F9531
tetradic
#314F95 #953181 #957731 #319545
square
#314F95 #953181 #957731 #319545
split-complementary
#314F95 #954531 #819531
monochromatic
#131E39 #223767 #314F95 #4268C1 #708DD0

Accessibility & contrast

On white

7.83
#314F95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#314F95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314F95
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314F95#FFFFFF#000000##FFFFFF
##314F951.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C5798
Deuteranopia (green-blind)
#1A4E94
Tritanopia (blue-blind)
#005F6A
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #314f95;
/* rgb */ color: rgb(49, 79, 149);
/* oklch */ color: oklch(44.3% 0.120 264.6);
Tailwind
colors: {
  custom: {
    50: '#747fb4',
    500: '#314f95',
    950: '#000000',
  },
}
SCSS
$custom: #314f95;
$custom-light: #747fb4;
$custom-dark: #000000;
JSON
{
  "hex": "#314f95",
  "rgb": {
    "r": 49,
    "g": 79,
    "b": 149
  },
  "hsl": {
    "h": 222,
    "s": 50.505,
    "l": 38.824
  },
  "oklch": {
    "l": 0.4426,
    "c": 0.12024,
    "h": 264.6
  },
  "luminance": 0.08415
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #314F95

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

Preview Lab → · Contrast checker → · Palette generator →

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