#314AB8#314AB8

#314AB8 is a mid, vivid blue. Relative luminance 0.090; OKLCH L 46.0% C 0.176 H 268.6°. Best body text is #FFFFFF at 7.49:1 contrast (WCAG AA passes).

Color values

HEX#314AB8
RGBrgb(49, 74, 184)
HSLhsl(229, 58%, 46%)
HSVhsv(229, 73%, 72%)
CMYKcmyk(73.4%, 59.8%, 0%, 27.8%)
CIE-LABlab(36.00, 29.19, -60.87)
CIE-LCHlch(36.00, 67.51, 295.62°)
OKLaboklab(45.95% -0.0042 -0.1757)
OKLCHoklch(45.95% 0.176 268.6)
XYZxyz(12.3641, 9.0099, 46.4256)
Luminance0.0901 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314AB8 #B89F31
analogous
#318DB8 #314AB8 #5B31B8
triadic
#314AB8 #B8314A #4AB831
tetradic
#314AB8 #B8318D #B89F31 #31B85B
square
#314AB8 #B8318D #B89F31 #31B85B
split-complementary
#314AB8 #B85B31 #8DB831
monochromatic
#172357 #243788 #314AB8 #556CD2 #8595DE

Accessibility & contrast

On white

7.49
#314AB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#314AB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314AB8
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314AB8#FFFFFF#000000##FFFFFF
##314AB81.007.492.807.49
#FFFFFF7.491.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBC
Deuteranopia (green-blind)
#004FB6
Tritanopia (blue-blind)
#00667A
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #314ab8;
/* rgb */ color: rgb(49, 74, 184);
/* oklch */ color: oklch(46.0% 0.176 268.6);
Tailwind
colors: {
  custom: {
    50: '#7c7cce',
    500: '#314ab8',
    950: '#000000',
  },
}
SCSS
$custom: #314ab8;
$custom-light: #7c7cce;
$custom-dark: #000000;
JSON
{
  "hex": "#314ab8",
  "rgb": {
    "r": 49,
    "g": 74,
    "b": 184
  },
  "hsl": {
    "h": 228.889,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.4595,
    "c": 0.17576,
    "h": 268.6
  },
  "luminance": 0.09011
}

Semantic roles & 50–950 ramp

primary
#314AB8
secondary
#C8BA7D
accent
#C547E1
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0914
muted
#7C7B82

Preview Lab

Preview with #314AB8

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

Preview Lab → · Contrast checker → · Palette generator →

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