#314FB5#314FB5

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

Color values

HEX#314FB5
RGBrgb(49, 79, 181)
HSLhsl(226, 57%, 45%)
HSVhsv(226, 73%, 71%)
CMYKcmyk(72.9%, 56.4%, 0%, 29%)
CIE-LABlab(37.08, 24.81, -57.35)
CIE-LCHlch(37.08, 62.49, 293.39°)
OKLaboklab(46.68% -0.008 -0.1653)
OKLCHoklch(46.68% 0.166 267.2)
XYZxyz(12.4002, 9.5798, 44.9027)
Luminance0.0958 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314FB5 #B59731
analogous
#3191B5 #314FB5 #5531B5
triadic
#314FB5 #B5314F #4FB531
tetradic
#314FB5 #B53191 #B59731 #31B555
square
#314FB5 #B53191 #B59731 #31B555
split-complementary
#314FB5 #B55531 #91B531
monochromatic
#172555 #243A85 #314FB5 #536FD0 #8398DD

Accessibility & contrast

On white

7.20
#314FB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#314FB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314FB5
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314FB5#FFFFFF#000000##FFFFFF
##314FB51.007.202.927.20
#FFFFFF7.201.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EB8
Deuteranopia (green-blind)
#0051B3
Tritanopia (blue-blind)
#00687A
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #314fb5;
/* rgb */ color: rgb(49, 79, 181);
/* oklch */ color: oklch(46.7% 0.166 267.2);
Tailwind
colors: {
  custom: {
    50: '#7b7fcc',
    500: '#314fb5',
    950: '#000000',
  },
}
SCSS
$custom: #314fb5;
$custom-light: #7b7fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#314fb5",
  "rgb": {
    "r": 49,
    "g": 79,
    "b": 181
  },
  "hsl": {
    "h": 226.364,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.4668,
    "c": 0.16551,
    "h": 267.2
  },
  "luminance": 0.09581
}

Semantic roles & 50–950 ramp

primary
#314FB5
secondary
#C7B67B
accent
#BE47E1
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #314FB5

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

Preview Lab → · Contrast checker → · Palette generator →

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