#314DB5#314DB5

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

Color values

HEX#314DB5
RGBrgb(49, 77, 181)
HSLhsl(227, 57%, 45%)
HSVhsv(227, 73%, 71%)
CMYKcmyk(72.9%, 57.5%, 0%, 29%)
CIE-LABlab(36.55, 26.12, -58.22)
CIE-LCHlch(36.55, 63.81, 294.17°)
OKLaboklab(46.28% -0.0065 -0.1679)
OKLCHoklch(46.28% 0.168 267.8)
XYZxyz(12.2581, 9.2956, 44.8553)
Luminance0.0930 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314DB5 #B59931
analogous
#318FB5 #314DB5 #5731B5
triadic
#314DB5 #B5314D #4DB531
tetradic
#314DB5 #B5318F #B59931 #31B557
square
#314DB5 #B5318F #B59931 #31B557
split-complementary
#314DB5 #B55731 #8FB531
monochromatic
#172455 #243985 #314DB5 #536DD0 #8396DD

Accessibility & contrast

On white

7.34
#314DB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#314DB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314DB5
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314DB5#FFFFFF#000000##FFFFFF
##314DB51.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB9
Deuteranopia (green-blind)
#0050B3
Tritanopia (blue-blind)
#006779
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #314db5;
/* rgb */ color: rgb(49, 77, 181);
/* oklch */ color: oklch(46.3% 0.168 267.8);
Tailwind
colors: {
  custom: {
    50: '#7b7ecc',
    500: '#314db5',
    950: '#000000',
  },
}
SCSS
$custom: #314db5;
$custom-light: #7b7ecc;
$custom-dark: #000000;
JSON
{
  "hex": "#314db5",
  "rgb": {
    "r": 49,
    "g": 77,
    "b": 181
  },
  "hsl": {
    "h": 227.273,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.46282,
    "c": 0.168,
    "h": 267.8
  },
  "luminance": 0.09297
}

Semantic roles & 50–950 ramp

primary
#314DB5
secondary
#C7B77B
accent
#C047E1
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #314DB5

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

Preview Lab → · Contrast checker → · Palette generator →

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