#314FB2#314FB2

#314FB2 is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.4% C 0.161 H 267.1°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#314FB2
RGBrgb(49, 79, 178)
HSLhsl(226, 57%, 45%)
HSVhsv(226, 72%, 70%)
CMYKcmyk(72.5%, 55.6%, 0%, 30.2%)
CIE-LABlab(36.85, 23.69, -55.95)
CIE-LCHlch(36.85, 60.76, 292.95°)
OKLaboklab(46.44% -0.0082 -0.1612)
OKLCHoklch(46.44% 0.161 267.1)
XYZxyz(12.0957, 9.4580, 43.2990)
Luminance0.0946 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314FB2 #B29431
analogous
#318FB2 #314FB2 #5431B2
triadic
#314FB2 #B2314F #4FB231
tetradic
#314FB2 #B2318F #B29431 #31B254
square
#314FB2 #B2318F #B29431 #31B254
split-complementary
#314FB2 #B25431 #8FB231
monochromatic
#172452 #243A82 #314FB2 #516ECF #8196DC

Accessibility & contrast

On white

7.26
#314FB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#314FB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314FB2
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314FB2#FFFFFF#000000##FFFFFF
##314FB21.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB5
Deuteranopia (green-blind)
#0051B0
Tritanopia (blue-blind)
#006778
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #314fb2;
/* rgb */ color: rgb(49, 79, 178);
/* oklch */ color: oklch(46.4% 0.161 267.1);
Tailwind
colors: {
  custom: {
    50: '#7a7fca',
    500: '#314fb2',
    950: '#000000',
  },
}
SCSS
$custom: #314fb2;
$custom-light: #7a7fca;
$custom-dark: #000000;
JSON
{
  "hex": "#314fb2",
  "rgb": {
    "r": 49,
    "g": 79,
    "b": 178
  },
  "hsl": {
    "h": 226.047,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.46439,
    "c": 0.16139,
    "h": 267.1
  },
  "luminance": 0.09459
}

Semantic roles & 50–950 ramp

primary
#314FB2
secondary
#C5B479
accent
#BD48E0
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #314FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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