#314EB8#314EB8

#314EB8 is a mid, vivid blue. Relative luminance 0.096; OKLCH L 46.7% C 0.171 H 267.6°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#314EB8
RGBrgb(49, 78, 184)
HSLhsl(227, 58%, 46%)
HSVhsv(227, 73%, 72%)
CMYKcmyk(73.4%, 57.6%, 0%, 27.8%)
CIE-LABlab(37.04, 26.58, -59.18)
CIE-LCHlch(37.04, 64.87, 294.19°)
OKLaboklab(46.73% -0.0071 -0.1707)
OKLCHoklch(46.73% 0.171 267.6)
XYZxyz(12.6397, 9.5611, 46.5174)
Luminance0.0956 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314EB8 #B89B31
analogous
#3191B8 #314EB8 #5731B8
triadic
#314EB8 #B8314E #4EB831
tetradic
#314EB8 #B83191 #B89B31 #31B857
square
#314EB8 #B83191 #B89B31 #31B857
split-complementary
#314EB8 #B85731 #91B831
monochromatic
#172557 #243A88 #314EB8 #556FD2 #8598DE

Accessibility & contrast

On white

7.21
#314EB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#314EB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314EB8
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314EB8#FFFFFF#000000##FFFFFF
##314EB81.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBC
Deuteranopia (green-blind)
#0051B6
Tritanopia (blue-blind)
#00687B
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #314eb8;
/* rgb */ color: rgb(49, 78, 184);
/* oklch */ color: oklch(46.7% 0.171 267.6);
Tailwind
colors: {
  custom: {
    50: '#7c7fce',
    500: '#314eb8',
    950: '#000000',
  },
}
SCSS
$custom: #314eb8;
$custom-light: #7c7fce;
$custom-dark: #000000;
JSON
{
  "hex": "#314eb8",
  "rgb": {
    "r": 49,
    "g": 78,
    "b": 184
  },
  "hsl": {
    "h": 227.111,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.46726,
    "c": 0.17083,
    "h": 267.6
  },
  "luminance": 0.09562
}

Semantic roles & 50–950 ramp

primary
#314EB8
secondary
#C8B87D
accent
#C047E1
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #314EB8

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

Preview Lab → · Contrast checker → · Palette generator →

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