#314FB6#314FB6

#314FB6 is a mid, vivid blue. Relative luminance 0.096; OKLCH L 46.8% C 0.167 H 267.3°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#314FB6
RGBrgb(49, 79, 182)
HSLhsl(226, 58%, 45%)
HSVhsv(226, 73%, 71%)
CMYKcmyk(73.1%, 56.6%, 0%, 28.6%)
CIE-LABlab(37.15, 25.18, -57.82)
CIE-LCHlch(37.15, 63.07, 293.53°)
OKLaboklab(46.76% -0.008 -0.1667)
OKLCHoklch(46.76% 0.167 267.3)
XYZxyz(12.5032, 9.6210, 45.4450)
Luminance0.0962 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314FB6 #B69831
analogous
#3192B6 #314FB6 #5531B6
triadic
#314FB6 #B6314F #4FB631
tetradic
#314FB6 #B63192 #B69831 #31B655
square
#314FB6 #B63192 #B69831 #31B655
split-complementary
#314FB6 #B65531 #92B631
monochromatic
#172556 #243A86 #314FB6 #5370D1 #8498DE

Accessibility & contrast

On white

7.18
#314FB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #314FB6
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314FB6#FFFFFF#000000##FFFFFF
##314FB61.007.182.927.18
#FFFFFF7.181.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBA
Deuteranopia (green-blind)
#0052B4
Tritanopia (blue-blind)
#00687B
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #314fb6;
/* rgb */ color: rgb(49, 79, 182);
/* oklch */ color: oklch(46.8% 0.167 267.3);
Tailwind
colors: {
  custom: {
    50: '#7b7fcd',
    500: '#314fb6',
    950: '#000000',
  },
}
SCSS
$custom: #314fb6;
$custom-light: #7b7fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#314fb6",
  "rgb": {
    "r": 49,
    "g": 79,
    "b": 182
  },
  "hsl": {
    "h": 226.466,
    "s": 57.576,
    "l": 45.294
  },
  "oklch": {
    "l": 0.46761,
    "c": 0.16687,
    "h": 267.3
  },
  "luminance": 0.09622
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #314FB6

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

Preview Lab → · Contrast checker → · Palette generator →

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