#314AB5#314AB5

#314AB5 is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.7% C 0.172 H 268.6°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#314AB5
RGBrgb(49, 74, 181)
HSLhsl(229, 57%, 45%)
HSVhsv(229, 73%, 71%)
CMYKcmyk(72.9%, 59.1%, 0%, 29%)
CIE-LABlab(35.76, 28.09, -59.49)
CIE-LCHlch(35.76, 65.79, 295.27°)
OKLaboklab(45.7% -0.0042 -0.1717)
OKLCHoklch(45.7% 0.172 268.6)
XYZxyz(12.0530, 8.8855, 44.7870)
Luminance0.0889 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314AB5 #B59C31
analogous
#318CB5 #314AB5 #5A31B5
triadic
#314AB5 #B5314A #4AB531
tetradic
#314AB5 #B5318C #B59C31 #31B55A
square
#314AB5 #B5318C #B59C31 #31B55A
split-complementary
#314AB5 #B55A31 #8CB531
monochromatic
#172355 #243685 #314AB5 #536BD0 #8394DD

Accessibility & contrast

On white

7.56
#314AB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#314AB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314AB5
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314AB5#FFFFFF#000000##FFFFFF
##314AB51.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB9
Deuteranopia (green-blind)
#004EB3
Tritanopia (blue-blind)
#006578
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #314ab5;
/* rgb */ color: rgb(49, 74, 181);
/* oklch */ color: oklch(45.7% 0.172 268.6);
Tailwind
colors: {
  custom: {
    50: '#7b7ccc',
    500: '#314ab5',
    950: '#000000',
  },
}
SCSS
$custom: #314ab5;
$custom-light: #7b7ccc;
$custom-dark: #000000;
JSON
{
  "hex": "#314ab5",
  "rgb": {
    "r": 49,
    "g": 74,
    "b": 181
  },
  "hsl": {
    "h": 228.636,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.45696,
    "c": 0.17171,
    "h": 268.6
  },
  "luminance": 0.08887
}

Semantic roles & 50–950 ramp

primary
#314AB5
secondary
#C7B87B
accent
#C447E1
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #314AB5

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

Preview Lab → · Contrast checker → · Palette generator →

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