#314E9A#314E9A

#314E9A is a dark, vivid blue. Relative luminance 0.084; OKLCH L 44.4% C 0.129 H 265.7°. Best body text is #FFFFFF at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#314E9A
RGBrgb(49, 78, 154)
HSLhsl(223, 52%, 40%)
HSVhsv(223, 68%, 60%)
CMYKcmyk(68.2%, 49.4%, 0%, 39.6%)
CIE-LABlab(34.87, 15.36, -44.81)
CIE-LCHlch(34.87, 47.37, 288.92°)
OKLaboklab(44.4% -0.0097 -0.1284)
OKLCHoklch(44.4% 0.129 265.7)
XYZxyz(9.8217, 8.4339, 31.6759)
Luminance0.0843 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314E9A #9A7D31
analogous
#31829A #314E9A #49319A
triadic
#314E9A #9A314E #4E9A31
tetradic
#314E9A #9A3182 #9A7D31 #319A49
square
#314E9A #9A3182 #9A7D31 #319A49
split-complementary
#314E9A #9A4931 #829A31
monochromatic
#131F3D #22366C #314E9A #4568C4 #738DD2

Accessibility & contrast

On white

7.82
#314E9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #314E9A
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314E9A#FFFFFF#000000##FFFFFF
##314E9A1.007.822.697.82
#FFFFFF7.821.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25579D
Deuteranopia (green-blind)
#0A4D98
Tritanopia (blue-blind)
#00606C
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #314e9a;
/* rgb */ color: rgb(49, 78, 154);
/* oklch */ color: oklch(44.4% 0.129 265.7);
Tailwind
colors: {
  custom: {
    50: '#757fb8',
    500: '#314e9a',
    950: '#000000',
  },
}
SCSS
$custom: #314e9a;
$custom-light: #757fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#314e9a",
  "rgb": {
    "r": 49,
    "g": 78,
    "b": 154
  },
  "hsl": {
    "h": 223.429,
    "s": 51.724,
    "l": 39.804
  },
  "oklch": {
    "l": 0.44396,
    "c": 0.12879,
    "h": 265.7
  },
  "luminance": 0.08435
}

Semantic roles & 50–950 ramp

primary
#314E9A
secondary
#BAA56C
accent
#B44DDB
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #314E9A

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

Preview Lab → · Contrast checker → · Palette generator →

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