#314EA5#314EA5

#314EA5 is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.2% C 0.145 H 266.7°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#314EA5
RGBrgb(49, 78, 165)
HSLhsl(225, 54%, 42%)
HSVhsv(225, 70%, 65%)
CMYKcmyk(70.3%, 52.7%, 0%, 35.3%)
CIE-LABlab(35.63, 19.48, -50.20)
CIE-LCHlch(35.63, 53.85, 291.21°)
OKLaboklab(45.22% -0.0084 -0.1443)
OKLCHoklch(45.22% 0.145 266.7)
XYZxyz(10.7802, 8.8173, 36.7238)
Luminance0.0882 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314EA5 #A58831
analogous
#3188A5 #314EA5 #4E31A5
triadic
#314EA5 #A5314E #4EA531
tetradic
#314EA5 #A53188 #A58831 #31A54E
square
#314EA5 #A53188 #A58831 #31A54E
split-complementary
#314EA5 #A54E31 #88A531
monochromatic
#152147 #233876 #314EA5 #4A6AC9 #7991D7

Accessibility & contrast

On white

7.60
#314EA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#314EA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314EA5
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314EA5#FFFFFF#000000##FFFFFF
##314EA51.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1659A8
Deuteranopia (green-blind)
#004FA3
Tritanopia (blue-blind)
#006372
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #314ea5;
/* rgb */ color: rgb(49, 78, 165);
/* oklch */ color: oklch(45.2% 0.145 266.7);
Tailwind
colors: {
  custom: {
    50: '#787fc0',
    500: '#314ea5',
    950: '#000000',
  },
}
SCSS
$custom: #314ea5;
$custom-light: #787fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#314ea5",
  "rgb": {
    "r": 49,
    "g": 78,
    "b": 165
  },
  "hsl": {
    "h": 225,
    "s": 54.206,
    "l": 41.961
  },
  "oklch": {
    "l": 0.45216,
    "c": 0.14452,
    "h": 266.7
  },
  "luminance": 0.08818
}

Semantic roles & 50–950 ramp

primary
#314EA5
secondary
#C0AC72
accent
#B94ADE
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #314EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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