#314EBA#314EBA

#314EBA is a mid, vivid blue. Relative luminance 0.096; OKLCH L 46.9% C 0.174 H 267.7°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#314EBA
RGBrgb(49, 78, 186)
HSLhsl(227, 58%, 46%)
HSVhsv(227, 74%, 73%)
CMYKcmyk(73.7%, 58.1%, 0%, 27.1%)
CIE-LABlab(37.20, 27.32, -60.10)
CIE-LCHlch(37.20, 66.02, 294.45°)
OKLaboklab(46.89% -0.0071 -0.1734)
OKLCHoklch(46.89% 0.174 267.7)
XYZxyz(12.8509, 9.6455, 47.6294)
Luminance0.0965 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314EBA #BA9D31
analogous
#3192BA #314EBA #5831BA
triadic
#314EBA #BA314E #4EBA31
tetradic
#314EBA #BA3192 #BA9D31 #31BA58
square
#314EBA #BA3192 #BA9D31 #31BA58
split-complementary
#314EBA #BA5831 #92BA31
monochromatic
#172559 #243A8A #314EBA #5670D2 #8699DF

Accessibility & contrast

On white

7.17
#314EBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#314EBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314EBA
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314EBA#FFFFFF#000000##FFFFFF
##314EBA1.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBE
Deuteranopia (green-blind)
#0051B8
Tritanopia (blue-blind)
#00697C
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #314eba;
/* rgb */ color: rgb(49, 78, 186);
/* oklch */ color: oklch(46.9% 0.174 267.7);
Tailwind
colors: {
  custom: {
    50: '#7c7fd0',
    500: '#314eba',
    950: '#000000',
  },
}
SCSS
$custom: #314eba;
$custom-light: #7c7fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#314eba",
  "rgb": {
    "r": 49,
    "g": 78,
    "b": 186
  },
  "hsl": {
    "h": 227.299,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.46892,
    "c": 0.17353,
    "h": 267.7
  },
  "luminance": 0.09647
}

Semantic roles & 50–950 ramp

primary
#314EBA
secondary
#C9B97E
accent
#C146E2
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #314EBA

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

Preview Lab → · Contrast checker → · Palette generator →

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