#314EB3#314EB3

#314EB3 is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.3% C 0.164 H 267.4°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#314EB3
RGBrgb(49, 78, 179)
HSLhsl(227, 57%, 45%)
HSVhsv(227, 73%, 70%)
CMYKcmyk(72.6%, 56.4%, 0%, 29.8%)
CIE-LABlab(36.66, 24.72, -56.85)
CIE-LCHlch(36.66, 62.00, 293.50°)
OKLaboklab(46.32% -0.0074 -0.1638)
OKLCHoklch(46.32% 0.164 267.4)
XYZxyz(12.1249, 9.3552, 43.8058)
Luminance0.0936 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314EB3 #B39631
analogous
#318FB3 #314EB3 #5531B3
triadic
#314EB3 #B3314E #4EB331
tetradic
#314EB3 #B3318F #B39631 #31B355
square
#314EB3 #B3318F #B39631 #31B355
split-complementary
#314EB3 #B35531 #8FB331
monochromatic
#172453 #243983 #314EB3 #526ED0 #8296DD

Accessibility & contrast

On white

7.31
#314EB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#314EB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314EB3
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314EB3#FFFFFF#000000##FFFFFF
##314EB31.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #314eb3;
/* rgb */ color: rgb(49, 78, 179);
/* oklch */ color: oklch(46.3% 0.164 267.4);
Tailwind
colors: {
  custom: {
    50: '#7b7fca',
    500: '#314eb3',
    950: '#000000',
  },
}
SCSS
$custom: #314eb3;
$custom-light: #7b7fca;
$custom-dark: #000000;
JSON
{
  "hex": "#314eb3",
  "rgb": {
    "r": 49,
    "g": 78,
    "b": 179
  },
  "hsl": {
    "h": 226.615,
    "s": 57.018,
    "l": 44.706
  },
  "oklch": {
    "l": 0.46318,
    "c": 0.16402,
    "h": 267.4
  },
  "luminance": 0.09356
}

Semantic roles & 50–950 ramp

primary
#314EB3
secondary
#C6B57A
accent
#BE48E0
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #314EB3

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

Preview Lab → · Contrast checker → · Palette generator →

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