#314EC5#314EC5

#314EC5 is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.8% C 0.188 H 267.9°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#314EC5
RGBrgb(49, 78, 197)
HSLhsl(228, 60%, 48%)
HSVhsv(228, 75%, 77%)
CMYKcmyk(75.1%, 60.4%, 0%, 22.7%)
CIE-LABlab(38.08, 31.38, -65.10)
CIE-LCHlch(38.08, 72.27, 295.73°)
OKLaboklab(47.82% -0.0069 -0.1881)
OKLCHoklch(47.82% 0.188 267.9)
XYZxyz(14.0656, 10.1314, 54.0268)
Luminance0.1013 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314EC5 #C5A831
analogous
#3198C5 #314EC5 #5E31C5
triadic
#314EC5 #C5314E #4EC531
tetradic
#314EC5 #C53198 #C5A831 #31C55E
square
#314EC5 #C53198 #C5A831 #31C55E
split-complementary
#314EC5 #C55E31 #98C531
monochromatic
#192763 #253B94 #314EC5 #5D75D7 #8E9EE3

Accessibility & contrast

On white

6.94
#314EC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#314EC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #314EC5
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314EC5#FFFFFF#000000##FFFFFF
##314EC51.006.943.036.94
#FFFFFF6.941.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #314ec5;
/* rgb */ color: rgb(49, 78, 197);
/* oklch */ color: oklch(47.8% 0.188 267.9);
Tailwind
colors: {
  custom: {
    50: '#7f7fd8',
    500: '#314ec5',
    950: '#000000',
  },
}
SCSS
$custom: #314ec5;
$custom-light: #7f7fd8;
$custom-dark: #000000;
JSON
{
  "hex": "#314ec5",
  "rgb": {
    "r": 49,
    "g": 78,
    "b": 197
  },
  "hsl": {
    "h": 228.243,
    "s": 60.163,
    "l": 48.235
  },
  "oklch": {
    "l": 0.47821,
    "c": 0.1882,
    "h": 267.9
  },
  "luminance": 0.10133
}

Semantic roles & 50–950 ramp

primary
#314EC5
secondary
#CDBF85
accent
#C444E3
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0A15
muted
#7D7C83

Preview Lab

Preview with #314EC5

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

Preview Lab → · Contrast checker → · Palette generator →

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