#314FB8#314FB8

#314FB8 is a mid, vivid blue. Relative luminance 0.097; OKLCH L 46.9% C 0.170 H 267.3°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#314FB8
RGBrgb(49, 79, 184)
HSLhsl(227, 58%, 46%)
HSVhsv(227, 73%, 72%)
CMYKcmyk(73.4%, 57.1%, 0%, 27.8%)
CIE-LABlab(37.31, 25.93, -58.75)
CIE-LCHlch(37.31, 64.22, 293.81°)
OKLaboklab(46.92% -0.0079 -0.1694)
OKLCHoklch(46.92% 0.17 267.3)
XYZxyz(12.7113, 9.7043, 46.5413)
Luminance0.0971 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314FB8 #B89A31
analogous
#3192B8 #314FB8 #5731B8
triadic
#314FB8 #B8314F #4FB831
tetradic
#314FB8 #B83192 #B89A31 #31B857
square
#314FB8 #B83192 #B89A31 #31B857
split-complementary
#314FB8 #B85731 #92B831
monochromatic
#172557 #243A88 #314FB8 #5570D2 #8599DE

Accessibility & contrast

On white

7.14
#314FB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#314FB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314FB8
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314FB8#FFFFFF#000000##FFFFFF
##314FB81.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBC
Deuteranopia (green-blind)
#0052B6
Tritanopia (blue-blind)
#00697C
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #314fb8;
/* rgb */ color: rgb(49, 79, 184);
/* oklch */ color: oklch(46.9% 0.170 267.3);
Tailwind
colors: {
  custom: {
    50: '#7c7fce',
    500: '#314fb8',
    950: '#000000',
  },
}
SCSS
$custom: #314fb8;
$custom-light: #7c7fce;
$custom-dark: #000000;
JSON
{
  "hex": "#314fb8",
  "rgb": {
    "r": 49,
    "g": 79,
    "b": 184
  },
  "hsl": {
    "h": 226.667,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.46924,
    "c": 0.16959,
    "h": 267.3
  },
  "luminance": 0.09706
}

Semantic roles & 50–950 ramp

primary
#314FB8
secondary
#C8B77D
accent
#BF47E1
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #314FB8

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

Preview Lab → · Contrast checker → · Palette generator →

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