#314EB9#314EB9

#314EB9 is a mid, vivid blue. Relative luminance 0.096; OKLCH L 46.8% C 0.172 H 267.6°. Best body text is #FFFFFF at 7.19:1 contrast (WCAG AA passes).

Color values

HEX#314EB9
RGBrgb(49, 78, 185)
HSLhsl(227, 58%, 46%)
HSVhsv(227, 74%, 73%)
CMYKcmyk(73.5%, 57.8%, 0%, 27.5%)
CIE-LABlab(37.12, 26.95, -59.64)
CIE-LCHlch(37.12, 65.45, 294.32°)
OKLaboklab(46.81% -0.0071 -0.172)
OKLCHoklch(46.81% 0.172 267.6)
XYZxyz(12.7449, 9.6032, 47.0714)
Luminance0.0960 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314EB9 #B99C31
analogous
#3192B9 #314EB9 #5831B9
triadic
#314EB9 #B9314E #4EB931
tetradic
#314EB9 #B93192 #B99C31 #31B958
square
#314EB9 #B93192 #B99C31 #31B958
split-complementary
#314EB9 #B95831 #92B931
monochromatic
#172558 #243A89 #314EB9 #5570D2 #8699DF

Accessibility & contrast

On white

7.19
#314EB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#314EB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314EB9
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314EB9#FFFFFF#000000##FFFFFF
##314EB91.007.192.927.19
#FFFFFF7.191.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBD
Deuteranopia (green-blind)
#0051B7
Tritanopia (blue-blind)
#00697C
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #314eb9;
/* rgb */ color: rgb(49, 78, 185);
/* oklch */ color: oklch(46.8% 0.172 267.6);
Tailwind
colors: {
  custom: {
    50: '#7c7fcf',
    500: '#314eb9',
    950: '#000000',
  },
}
SCSS
$custom: #314eb9;
$custom-light: #7c7fcf;
$custom-dark: #000000;
JSON
{
  "hex": "#314eb9",
  "rgb": {
    "r": 49,
    "g": 78,
    "b": 185
  },
  "hsl": {
    "h": 227.206,
    "s": 58.12,
    "l": 45.882
  },
  "oklch": {
    "l": 0.46809,
    "c": 0.17219,
    "h": 267.6
  },
  "luminance": 0.09605
}

Semantic roles & 50–950 ramp

primary
#314EB9
secondary
#C8B87D
accent
#C046E1
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #314EB9

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

Preview Lab → · Contrast checker → · Palette generator →

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