#314FB4#314FB4

#314FB4 is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.6% C 0.164 H 267.2°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#314FB4
RGBrgb(49, 79, 180)
HSLhsl(226, 57%, 45%)
HSVhsv(226, 73%, 71%)
CMYKcmyk(72.8%, 56.1%, 0%, 29.4%)
CIE-LABlab(37.00, 24.44, -56.89)
CIE-LCHlch(37.00, 61.91, 293.25°)
OKLaboklab(46.6% -0.0081 -0.1639)
OKLCHoklch(46.6% 0.164 267.2)
XYZxyz(12.2980, 9.5389, 44.3642)
Luminance0.0954 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314FB4 #B49631
analogous
#3190B4 #314FB4 #5531B4
triadic
#314FB4 #B4314F #4FB431
tetradic
#314FB4 #B43190 #B49631 #31B455
square
#314FB4 #B43190 #B49631 #31B455
split-complementary
#314FB4 #B45531 #90B431
monochromatic
#172554 #243A84 #314FB4 #526FD0 #8297DD

Accessibility & contrast

On white

7.22
#314FB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #314FB4
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314FB4#FFFFFF#000000##FFFFFF
##314FB41.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB7
Deuteranopia (green-blind)
#0051B2
Tritanopia (blue-blind)
#006879
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #314fb4;
/* rgb */ color: rgb(49, 79, 180);
/* oklch */ color: oklch(46.6% 0.164 267.2);
Tailwind
colors: {
  custom: {
    50: '#7b7fcb',
    500: '#314fb4',
    950: '#000000',
  },
}
SCSS
$custom: #314fb4;
$custom-light: #7b7fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#314fb4",
  "rgb": {
    "r": 49,
    "g": 79,
    "b": 180
  },
  "hsl": {
    "h": 226.26,
    "s": 57.205,
    "l": 44.902
  },
  "oklch": {
    "l": 0.46599,
    "c": 0.16413,
    "h": 267.2
  },
  "luminance": 0.0954
}

Semantic roles & 50–950 ramp

primary
#314FB4
secondary
#C6B57B
accent
#BD47E0
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #314FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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