#314FBA#314FBA

#314FBA is a mid, vivid blue. Relative luminance 0.098; OKLCH L 47.1% C 0.172 H 267.4°. Best body text is #FFFFFF at 7.10:1 contrast (WCAG AA passes).

Color values

HEX#314FBA
RGBrgb(49, 79, 186)
HSLhsl(227, 58%, 46%)
HSVhsv(227, 74%, 73%)
CMYKcmyk(73.7%, 57.5%, 0%, 27.1%)
CIE-LABlab(37.46, 26.67, -59.67)
CIE-LCHlch(37.46, 65.36, 294.08°)
OKLaboklab(47.09% -0.0078 -0.1721)
OKLCHoklch(47.09% 0.172 267.4)
XYZxyz(12.9224, 9.7887, 47.6532)
Luminance0.0979 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314FBA #BA9C31
analogous
#3193BA #314FBA #5731BA
triadic
#314FBA #BA314F #4FBA31
tetradic
#314FBA #BA3193 #BA9C31 #31BA57
square
#314FBA #BA3193 #BA9C31 #31BA57
split-complementary
#314FBA #BA5731 #93BA31
monochromatic
#172659 #243A8A #314FBA #5671D2 #869ADF

Accessibility & contrast

On white

7.10
#314FBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#314FBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314FBA
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314FBA#FFFFFF#000000##FFFFFF
##314FBA1.007.102.967.10
#FFFFFF7.101.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBE
Deuteranopia (green-blind)
#0052B8
Tritanopia (blue-blind)
#006A7D
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #314fba;
/* rgb */ color: rgb(49, 79, 186);
/* oklch */ color: oklch(47.1% 0.172 267.4);
Tailwind
colors: {
  custom: {
    50: '#7c7fd0',
    500: '#314fba',
    950: '#000000',
  },
}
SCSS
$custom: #314fba;
$custom-light: #7c7fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#314fba",
  "rgb": {
    "r": 49,
    "g": 79,
    "b": 186
  },
  "hsl": {
    "h": 226.861,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.47088,
    "c": 0.1723,
    "h": 267.4
  },
  "luminance": 0.0979
}

Semantic roles & 50–950 ramp

primary
#314FBA
secondary
#C9B87E
accent
#C046E2
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #314FBA

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

Preview Lab → · Contrast checker → · Palette generator →

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