#314EB4#314EB4

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

Color values

HEX#314EB4
RGBrgb(49, 78, 180)
HSLhsl(227, 57%, 45%)
HSVhsv(227, 73%, 71%)
CMYKcmyk(72.8%, 56.7%, 0%, 29.4%)
CIE-LABlab(36.74, 25.09, -57.32)
CIE-LCHlch(36.74, 62.57, 293.64°)
OKLaboklab(46.4% -0.0073 -0.1652)
OKLCHoklch(46.4% 0.165 267.5)
XYZxyz(12.2264, 9.3958, 44.3404)
Luminance0.0940 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314EB4 #B49731
analogous
#318FB4 #314EB4 #5631B4
triadic
#314EB4 #B4314E #4EB431
tetradic
#314EB4 #B4318F #B49731 #31B456
square
#314EB4 #B4318F #B49731 #31B456
split-complementary
#314EB4 #B45631 #8FB431
monochromatic
#172454 #243984 #314EB4 #526ED0 #8296DD

Accessibility & contrast

On white

7.29
#314EB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #314EB4
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314EB4#FFFFFF#000000##FFFFFF
##314EB41.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB7
Deuteranopia (green-blind)
#0051B2
Tritanopia (blue-blind)
#006779
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #314eb4;
/* rgb */ color: rgb(49, 78, 180);
/* oklch */ color: oklch(46.4% 0.165 267.5);
Tailwind
colors: {
  custom: {
    50: '#7b7fcb',
    500: '#314eb4',
    950: '#000000',
  },
}
SCSS
$custom: #314eb4;
$custom-light: #7b7fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#314eb4",
  "rgb": {
    "r": 49,
    "g": 78,
    "b": 180
  },
  "hsl": {
    "h": 226.718,
    "s": 57.205,
    "l": 44.902
  },
  "oklch": {
    "l": 0.46399,
    "c": 0.16538,
    "h": 267.5
  },
  "luminance": 0.09397
}

Semantic roles & 50–950 ramp

primary
#314EB4
secondary
#C6B67B
accent
#BF47E0
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #314EB4

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

Preview Lab → · Contrast checker → · Palette generator →

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