#314AB4#314AB4

#314AB4 is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.6% C 0.170 H 268.6°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#314AB4
RGBrgb(49, 74, 180)
HSLhsl(229, 57%, 45%)
HSVhsv(229, 73%, 71%)
CMYKcmyk(72.8%, 58.9%, 0%, 29.4%)
CIE-LABlab(35.68, 27.72, -59.03)
CIE-LCHlch(35.68, 65.21, 295.15°)
OKLaboklab(45.61% -0.0042 -0.1703)
OKLCHoklch(45.61% 0.17 268.6)
XYZxyz(11.9508, 8.8446, 44.2485)
Luminance0.0885 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314AB4 #B49B31
analogous
#318BB4 #314AB4 #5A31B4
triadic
#314AB4 #B4314A #4AB431
tetradic
#314AB4 #B4318B #B49B31 #31B45A
square
#314AB4 #B4318B #B49B31 #31B45A
split-complementary
#314AB4 #B45A31 #8BB431
monochromatic
#172254 #243684 #314AB4 #526AD0 #8294DD

Accessibility & contrast

On white

7.58
#314AB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#314AB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314AB4
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314AB4#FFFFFF#000000##FFFFFF
##314AB41.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB8
Deuteranopia (green-blind)
#004EB2
Tritanopia (blue-blind)
#006478
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #314ab4;
/* rgb */ color: rgb(49, 74, 180);
/* oklch */ color: oklch(45.6% 0.170 268.6);
Tailwind
colors: {
  custom: {
    50: '#7b7ccb',
    500: '#314ab4',
    950: '#000000',
  },
}
SCSS
$custom: #314ab4;
$custom-light: #7b7ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#314ab4",
  "rgb": {
    "r": 49,
    "g": 74,
    "b": 180
  },
  "hsl": {
    "h": 228.55,
    "s": 57.205,
    "l": 44.902
  },
  "oklch": {
    "l": 0.45612,
    "c": 0.17036,
    "h": 268.6
  },
  "luminance": 0.08846
}

Semantic roles & 50–950 ramp

primary
#314AB4
secondary
#C6B87B
accent
#C347E0
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #314AB4

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

Preview Lab → · Contrast checker → · Palette generator →

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