#314AB2#314AB2

#314AB2 is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.4% C 0.168 H 268.5°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#314AB2
RGBrgb(49, 74, 178)
HSLhsl(228, 57%, 45%)
HSVhsv(228, 72%, 70%)
CMYKcmyk(72.5%, 58.4%, 0%, 30.2%)
CIE-LABlab(35.53, 26.98, -58.11)
CIE-LCHlch(35.53, 64.06, 294.90°)
OKLaboklab(45.45% -0.0043 -0.1676)
OKLCHoklch(45.45% 0.168 268.5)
XYZxyz(11.7485, 8.7637, 43.1832)
Luminance0.0877 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314AB2 #B29931
analogous
#318BB2 #314AB2 #5931B2
triadic
#314AB2 #B2314A #4AB231
tetradic
#314AB2 #B2318B #B29931 #31B259
square
#314AB2 #B2318B #B29931 #31B259
split-complementary
#314AB2 #B25931 #8BB231
monochromatic
#172252 #243682 #314AB2 #516ACF #8193DC

Accessibility & contrast

On white

7.63
#314AB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#314AB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314AB2
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314AB2#FFFFFF#000000##FFFFFF
##314AB21.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB6
Deuteranopia (green-blind)
#004EB0
Tritanopia (blue-blind)
#006476
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #314ab2;
/* rgb */ color: rgb(49, 74, 178);
/* oklch */ color: oklch(45.4% 0.168 268.5);
Tailwind
colors: {
  custom: {
    50: '#7b7cca',
    500: '#314ab2',
    950: '#000000',
  },
}
SCSS
$custom: #314ab2;
$custom-light: #7b7cca;
$custom-dark: #000000;
JSON
{
  "hex": "#314ab2",
  "rgb": {
    "r": 49,
    "g": 74,
    "b": 178
  },
  "hsl": {
    "h": 228.372,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.45445,
    "c": 0.16765,
    "h": 268.5
  },
  "luminance": 0.08765
}

Semantic roles & 50–950 ramp

primary
#314AB2
secondary
#C5B779
accent
#C348E0
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #314AB2

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

Preview Lab → · Contrast checker → · Palette generator →

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