#314FB1#314FB1

#314FB1 is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.4% C 0.160 H 267.0°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#314FB1
RGBrgb(49, 79, 177)
HSLhsl(226, 57%, 44%)
HSVhsv(226, 72%, 69%)
CMYKcmyk(72.3%, 55.4%, 0%, 30.6%)
CIE-LABlab(36.78, 23.32, -55.48)
CIE-LCHlch(36.78, 60.18, 292.79°)
OKLaboklab(46.36% -0.0083 -0.1598)
OKLCHoklch(46.36% 0.16 267)
XYZxyz(11.9957, 9.4180, 42.7721)
Luminance0.0942 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314FB1 #B19331
analogous
#318FB1 #314FB1 #5331B1
triadic
#314FB1 #B1314F #4FB131
tetradic
#314FB1 #B1318F #B19331 #31B153
square
#314FB1 #B1318F #B19331 #31B153
split-complementary
#314FB1 #B15331 #8FB131
monochromatic
#162451 #243A81 #314FB1 #516ECF #8096DC

Accessibility & contrast

On white

7.28
#314FB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#314FB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314FB1
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314FB1#FFFFFF#000000##FFFFFF
##314FB11.007.282.887.28
#FFFFFF7.281.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB4
Deuteranopia (green-blind)
#0051AF
Tritanopia (blue-blind)
#006778
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #314fb1;
/* rgb */ color: rgb(49, 79, 177);
/* oklch */ color: oklch(46.4% 0.160 267.0);
Tailwind
colors: {
  custom: {
    50: '#7a7fc9',
    500: '#314fb1',
    950: '#000000',
  },
}
SCSS
$custom: #314fb1;
$custom-light: #7a7fc9;
$custom-dark: #000000;
JSON
{
  "hex": "#314fb1",
  "rgb": {
    "r": 49,
    "g": 79,
    "b": 177
  },
  "hsl": {
    "h": 225.938,
    "s": 56.637,
    "l": 44.314
  },
  "oklch": {
    "l": 0.46359,
    "c": 0.16,
    "h": 267
  },
  "luminance": 0.09419
}

Semantic roles & 50–950 ramp

primary
#314FB1
secondary
#C5B379
accent
#BC48E0
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #314FB1

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

Preview Lab → · Contrast checker → · Palette generator →

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