#314FC5#314FC5

#314FC5 is a mid, vivid blue. Relative luminance 0.103; OKLCH L 48.0% C 0.187 H 267.7°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#314FC5
RGBrgb(49, 79, 197)
HSLhsl(228, 60%, 48%)
HSVhsv(228, 75%, 77%)
CMYKcmyk(75.1%, 59.9%, 0%, 22.7%)
CIE-LABlab(38.33, 30.73, -64.69)
CIE-LCHlch(38.33, 71.61, 295.41°)
OKLaboklab(48.01% -0.0076 -0.1868)
OKLCHoklch(48.01% 0.187 267.7)
XYZxyz(14.1371, 10.2746, 54.0506)
Luminance0.1028 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314FC5 #C5A731
analogous
#3199C5 #314FC5 #5D31C5
triadic
#314FC5 #C5314F #4FC531
tetradic
#314FC5 #C53199 #C5A731 #31C55D
square
#314FC5 #C53199 #C5A731 #31C55D
split-complementary
#314FC5 #C55D31 #99C531
monochromatic
#192863 #253B94 #314FC5 #5D75D7 #8E9FE3

Accessibility & contrast

On white

6.87
#314FC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#314FC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #314FC5
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314FC5#FFFFFF#000000##FFFFFF
##314FC51.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C9
Deuteranopia (green-blind)
#0054C3
Tritanopia (blue-blind)
#006D82
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #314fc5;
/* rgb */ color: rgb(49, 79, 197);
/* oklch */ color: oklch(48.0% 0.187 267.7);
Tailwind
colors: {
  custom: {
    50: '#7f80d7',
    500: '#314fc5',
    950: '#000000',
  },
}
SCSS
$custom: #314fc5;
$custom-light: #7f80d7;
$custom-dark: #000000;
JSON
{
  "hex": "#314fc5",
  "rgb": {
    "r": 49,
    "g": 79,
    "b": 197
  },
  "hsl": {
    "h": 227.838,
    "s": 60.163,
    "l": 48.235
  },
  "oklch": {
    "l": 0.48009,
    "c": 0.18699,
    "h": 267.7
  },
  "luminance": 0.10276
}

Semantic roles & 50–950 ramp

primary
#314FC5
secondary
#CDBE85
accent
#C344E3
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0A15
muted
#7D7C83

Preview Lab

Preview with #314FC5

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

Preview Lab → · Contrast checker → · Palette generator →

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