#314EA7#314EA7

#314EA7 is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.4% C 0.147 H 266.8°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#314EA7
RGBrgb(49, 78, 167)
HSLhsl(225, 55%, 42%)
HSVhsv(225, 71%, 65%)
CMYKcmyk(70.7%, 53.3%, 0%, 34.5%)
CIE-LABlab(35.77, 20.23, -51.16)
CIE-LCHlch(35.77, 55.02, 291.58°)
OKLaboklab(45.37% -0.0082 -0.1471)
OKLCHoklch(45.37% 0.147 266.8)
XYZxyz(10.9636, 8.8907, 37.6900)
Luminance0.0889 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314EA7 #A78A31
analogous
#3189A7 #314EA7 #4F31A7
triadic
#314EA7 #A7314E #4EA731
tetradic
#314EA7 #A73189 #A78A31 #31A74F
square
#314EA7 #A73189 #A78A31 #31A74F
split-complementary
#314EA7 #A74F31 #89A731
monochromatic
#152248 #233878 #314EA7 #4B6ACA #7A91D8

Accessibility & contrast

On white

7.56
#314EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#314EA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314EA7
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314EA7#FFFFFF#000000##FFFFFF
##314EA71.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#115AAA
Deuteranopia (green-blind)
#004FA5
Tritanopia (blue-blind)
#006373
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #314ea7;
/* rgb */ color: rgb(49, 78, 167);
/* oklch */ color: oklch(45.4% 0.147 266.8);
Tailwind
colors: {
  custom: {
    50: '#787fc2',
    500: '#314ea7',
    950: '#000000',
  },
}
SCSS
$custom: #314ea7;
$custom-light: #787fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#314ea7",
  "rgb": {
    "r": 49,
    "g": 78,
    "b": 167
  },
  "hsl": {
    "h": 225.254,
    "s": 54.63,
    "l": 42.353
  },
  "oklch": {
    "l": 0.4537,
    "c": 0.14734,
    "h": 266.8
  },
  "luminance": 0.08892
}

Semantic roles & 50–950 ramp

primary
#314EA7
secondary
#C1AE73
accent
#BA4ADE
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #314EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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