#314FB7#314FB7

#314FB7 is a mid, vivid blue. Relative luminance 0.097; OKLCH L 46.8% C 0.168 H 267.3°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#314FB7
RGBrgb(49, 79, 183)
HSLhsl(227, 58%, 45%)
HSVhsv(227, 73%, 72%)
CMYKcmyk(73.2%, 56.8%, 0%, 28.2%)
CIE-LABlab(37.23, 25.55, -58.29)
CIE-LCHlch(37.23, 63.64, 293.67°)
OKLaboklab(46.84% -0.0079 -0.168)
OKLCHoklch(46.84% 0.168 267.3)
XYZxyz(12.6069, 9.6625, 45.9912)
Luminance0.0966 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314FB7 #B79931
analogous
#3192B7 #314FB7 #5631B7
triadic
#314FB7 #B7314F #4FB731
tetradic
#314FB7 #B73192 #B79931 #31B756
square
#314FB7 #B73192 #B79931 #31B756
split-complementary
#314FB7 #B75631 #92B731
monochromatic
#172556 #243A87 #314FB7 #5470D1 #8498DE

Accessibility & contrast

On white

7.16
#314FB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#314FB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314FB7
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314FB7#FFFFFF#000000##FFFFFF
##314FB71.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBB
Deuteranopia (green-blind)
#0052B5
Tritanopia (blue-blind)
#00697B
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #314fb7;
/* rgb */ color: rgb(49, 79, 183);
/* oklch */ color: oklch(46.8% 0.168 267.3);
Tailwind
colors: {
  custom: {
    50: '#7c7fcd',
    500: '#314fb7',
    950: '#000000',
  },
}
SCSS
$custom: #314fb7;
$custom-light: #7c7fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#314fb7",
  "rgb": {
    "r": 49,
    "g": 79,
    "b": 183
  },
  "hsl": {
    "h": 226.567,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.46842,
    "c": 0.16823,
    "h": 267.3
  },
  "luminance": 0.09664
}

Semantic roles & 50–950 ramp

primary
#314FB7
secondary
#C8B77C
accent
#BE47E1
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #314FB7

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

Preview Lab → · Contrast checker → · Palette generator →

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