#314EA6#314EA6

#314EA6 is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.3% C 0.146 H 266.7°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#314EA6
RGBrgb(49, 78, 166)
HSLhsl(225, 54%, 42%)
HSVhsv(225, 70%, 65%)
CMYKcmyk(70.5%, 53%, 0%, 34.9%)
CIE-LABlab(35.70, 19.86, -50.68)
CIE-LCHlch(35.70, 54.43, 291.40°)
OKLaboklab(45.29% -0.0083 -0.1457)
OKLCHoklch(45.29% 0.146 266.7)
XYZxyz(10.8716, 8.8538, 37.2050)
Luminance0.0886 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314EA6 #A68931
analogous
#3189A6 #314EA6 #4E31A6
triadic
#314EA6 #A6314E #4EA631
tetradic
#314EA6 #A63189 #A68931 #31A64E
square
#314EA6 #A63189 #A68931 #31A64E
split-complementary
#314EA6 #A64E31 #89A631
monochromatic
#152247 #233877 #314EA6 #4A6ACA #7A91D8

Accessibility & contrast

On white

7.58
#314EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#314EA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314EA6
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314EA6#FFFFFF#000000##FFFFFF
##314EA61.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#135AA9
Deuteranopia (green-blind)
#004FA4
Tritanopia (blue-blind)
#006372
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #314ea6;
/* rgb */ color: rgb(49, 78, 166);
/* oklch */ color: oklch(45.3% 0.146 266.7);
Tailwind
colors: {
  custom: {
    50: '#787fc1',
    500: '#314ea6',
    950: '#000000',
  },
}
SCSS
$custom: #314ea6;
$custom-light: #787fc1;
$custom-dark: #000000;
JSON
{
  "hex": "#314ea6",
  "rgb": {
    "r": 49,
    "g": 78,
    "b": 166
  },
  "hsl": {
    "h": 225.128,
    "s": 54.419,
    "l": 42.157
  },
  "oklch": {
    "l": 0.45293,
    "c": 0.14594,
    "h": 266.7
  },
  "luminance": 0.08855
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #314EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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