#314EB2#314EB2

#314EB2 is a mid, vivid blue. Relative luminance 0.093; OKLCH L 46.2% C 0.163 H 267.4°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#314EB2
RGBrgb(49, 78, 178)
HSLhsl(227, 57%, 45%)
HSVhsv(227, 72%, 70%)
CMYKcmyk(72.5%, 56.2%, 0%, 30.2%)
CIE-LABlab(36.58, 24.35, -56.39)
CIE-LCHlch(36.58, 61.42, 293.36°)
OKLaboklab(46.24% -0.0074 -0.1625)
OKLCHoklch(46.24% 0.163 267.4)
XYZxyz(12.0241, 9.3148, 43.2751)
Luminance0.0932 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314EB2 #B29531
analogous
#318EB2 #314EB2 #5531B2
triadic
#314EB2 #B2314E #4EB231
tetradic
#314EB2 #B2318E #B29531 #31B255
square
#314EB2 #B2318E #B29531 #31B255
split-complementary
#314EB2 #B25531 #8EB231
monochromatic
#172452 #243982 #314EB2 #516DCF #8196DC

Accessibility & contrast

On white

7.33
#314EB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#314EB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314EB2
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314EB2#FFFFFF#000000##FFFFFF
##314EB21.007.332.867.33
#FFFFFF7.331.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB5
Deuteranopia (green-blind)
#0050B0
Tritanopia (blue-blind)
#006678
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #314eb2;
/* rgb */ color: rgb(49, 78, 178);
/* oklch */ color: oklch(46.2% 0.163 267.4);
Tailwind
colors: {
  custom: {
    50: '#7a7fca',
    500: '#314eb2',
    950: '#000000',
  },
}
SCSS
$custom: #314eb2;
$custom-light: #7a7fca;
$custom-dark: #000000;
JSON
{
  "hex": "#314eb2",
  "rgb": {
    "r": 49,
    "g": 78,
    "b": 178
  },
  "hsl": {
    "h": 226.512,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.46237,
    "c": 0.16264,
    "h": 267.4
  },
  "luminance": 0.09316
}

Semantic roles & 50–950 ramp

primary
#314EB2
secondary
#C5B479
accent
#BE48E0
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #314EB2

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

Preview Lab → · Contrast checker → · Palette generator →

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