#314DB4#314DB4

#314DB4 is a mid, vivid blue. Relative luminance 0.093; OKLCH L 46.2% C 0.167 H 267.8°. Best body text is #FFFFFF at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#314DB4
RGBrgb(49, 77, 180)
HSLhsl(227, 57%, 45%)
HSVhsv(227, 73%, 71%)
CMYKcmyk(72.8%, 57.2%, 0%, 29.4%)
CIE-LABlab(36.47, 25.75, -57.75)
CIE-LCHlch(36.47, 63.23, 294.03°)
OKLaboklab(46.2% -0.0065 -0.1665)
OKLCHoklch(46.2% 0.167 267.8)
XYZxyz(12.1559, 9.2547, 44.3169)
Luminance0.0926 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314DB4 #B49831
analogous
#318EB4 #314DB4 #5731B4
triadic
#314DB4 #B4314D #4DB431
tetradic
#314DB4 #B4318E #B49831 #31B457
square
#314DB4 #B4318E #B49831 #31B457
split-complementary
#314DB4 #B45731 #8EB431
monochromatic
#172454 #243884 #314DB4 #526DD0 #8296DD

Accessibility & contrast

On white

7.37
#314DB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#314DB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314DB4
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314DB4#FFFFFF#000000##FFFFFF
##314DB41.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB8
Deuteranopia (green-blind)
#0050B2
Tritanopia (blue-blind)
#006679
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #314db4;
/* rgb */ color: rgb(49, 77, 180);
/* oklch */ color: oklch(46.2% 0.167 267.8);
Tailwind
colors: {
  custom: {
    50: '#7b7ecb',
    500: '#314db4',
    950: '#000000',
  },
}
SCSS
$custom: #314db4;
$custom-light: #7b7ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#314db4",
  "rgb": {
    "r": 49,
    "g": 77,
    "b": 180
  },
  "hsl": {
    "h": 227.176,
    "s": 57.205,
    "l": 44.902
  },
  "oklch": {
    "l": 0.462,
    "c": 0.16663,
    "h": 267.8
  },
  "luminance": 0.09256
}

Semantic roles & 50–950 ramp

primary
#314DB4
secondary
#C6B67B
accent
#C047E0
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #314DB4

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

Preview Lab → · Contrast checker → · Palette generator →

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