#314DB8#314DB8

#314DB8 is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.5% C 0.172 H 267.9°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#314DB8
RGBrgb(49, 77, 184)
HSLhsl(228, 58%, 46%)
HSVhsv(228, 73%, 72%)
CMYKcmyk(73.4%, 58.2%, 0%, 27.8%)
CIE-LABlab(36.78, 27.23, -59.60)
CIE-LCHlch(36.78, 65.53, 294.56°)
OKLaboklab(46.53% -0.0064 -0.1719)
OKLCHoklch(46.53% 0.172 267.9)
XYZxyz(12.5692, 9.4201, 46.4939)
Luminance0.0942 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314DB8 #B89C31
analogous
#3190B8 #314DB8 #5931B8
triadic
#314DB8 #B8314D #4DB831
tetradic
#314DB8 #B83190 #B89C31 #31B859
square
#314DB8 #B83190 #B89C31 #31B859
split-complementary
#314DB8 #B85931 #90B831
monochromatic
#172557 #243988 #314DB8 #556FD2 #8597DE

Accessibility & contrast

On white

7.28
#314DB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#314DB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314DB8
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314DB8#FFFFFF#000000##FFFFFF
##314DB81.007.282.887.28
#FFFFFF7.281.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #314db8;
/* rgb */ color: rgb(49, 77, 184);
/* oklch */ color: oklch(46.5% 0.172 267.9);
Tailwind
colors: {
  custom: {
    50: '#7c7ece',
    500: '#314db8',
    950: '#000000',
  },
}
SCSS
$custom: #314db8;
$custom-light: #7c7ece;
$custom-dark: #000000;
JSON
{
  "hex": "#314db8",
  "rgb": {
    "r": 49,
    "g": 77,
    "b": 184
  },
  "hsl": {
    "h": 227.556,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.4653,
    "c": 0.17207,
    "h": 267.9
  },
  "luminance": 0.09421
}

Semantic roles & 50–950 ramp

primary
#314DB8
secondary
#C8B87D
accent
#C147E1
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0914
muted
#7C7B82

Preview Lab

Preview with #314DB8

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

Preview Lab → · Contrast checker → · Palette generator →

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