#314EB6#314EB6

#314EB6 is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.6% C 0.168 H 267.5°. Best body text is #FFFFFF at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#314EB6
RGBrgb(49, 78, 182)
HSLhsl(227, 58%, 45%)
HSVhsv(227, 73%, 71%)
CMYKcmyk(73.1%, 57.1%, 0%, 28.6%)
CIE-LABlab(36.89, 25.84, -58.25)
CIE-LCHlch(36.89, 63.72, 293.92°)
OKLaboklab(46.56% -0.0072 -0.168)
OKLCHoklch(46.56% 0.168 267.5)
XYZxyz(12.4316, 9.4778, 45.4211)
Luminance0.0948 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314EB6 #B69931
analogous
#3191B6 #314EB6 #5631B6
triadic
#314EB6 #B6314E #4EB631
tetradic
#314EB6 #B63191 #B69931 #31B656
square
#314EB6 #B63191 #B69931 #31B656
split-complementary
#314EB6 #B65631 #91B631
monochromatic
#172556 #243986 #314EB6 #536FD1 #8497DE

Accessibility & contrast

On white

7.25
#314EB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#314EB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314EB6
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314EB6#FFFFFF#000000##FFFFFF
##314EB61.007.252.907.25
#FFFFFF7.251.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBA
Deuteranopia (green-blind)
#0051B4
Tritanopia (blue-blind)
#00687A
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #314eb6;
/* rgb */ color: rgb(49, 78, 182);
/* oklch */ color: oklch(46.6% 0.168 267.5);
Tailwind
colors: {
  custom: {
    50: '#7b7fcd',
    500: '#314eb6',
    950: '#000000',
  },
}
SCSS
$custom: #314eb6;
$custom-light: #7b7fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#314eb6",
  "rgb": {
    "r": 49,
    "g": 78,
    "b": 182
  },
  "hsl": {
    "h": 226.917,
    "s": 57.576,
    "l": 45.294
  },
  "oklch": {
    "l": 0.46562,
    "c": 0.16812,
    "h": 267.5
  },
  "luminance": 0.09479
}

Semantic roles & 50–950 ramp

primary
#314EB6
secondary
#C7B77C
accent
#BF47E1
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #314EB6

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

Preview Lab → · Contrast checker → · Palette generator →

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