#314AB7#314AB7

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

Color values

HEX#314AB7
RGBrgb(49, 74, 183)
HSLhsl(229, 58%, 45%)
HSVhsv(229, 73%, 72%)
CMYKcmyk(73.2%, 59.6%, 0%, 28.2%)
CIE-LABlab(35.92, 28.82, -60.41)
CIE-LCHlch(35.92, 66.94, 295.51°)
OKLaboklab(45.87% -0.0042 -0.1744)
OKLCHoklch(45.87% 0.174 268.6)
XYZxyz(12.2597, 8.9681, 45.8755)
Luminance0.0897 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314AB7 #B79E31
analogous
#318DB7 #314AB7 #5B31B7
triadic
#314AB7 #B7314A #4AB731
tetradic
#314AB7 #B7318D #B79E31 #31B75B
square
#314AB7 #B7318D #B79E31 #31B75B
split-complementary
#314AB7 #B75B31 #8DB731
monochromatic
#172356 #243687 #314AB7 #546BD1 #8495DE

Accessibility & contrast

On white

7.52
#314AB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#314AB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314AB7
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314AB7#FFFFFF#000000##FFFFFF
##314AB71.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBB
Deuteranopia (green-blind)
#004EB5
Tritanopia (blue-blind)
#006579
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #314ab7;
/* rgb */ color: rgb(49, 74, 183);
/* oklch */ color: oklch(45.9% 0.174 268.6);
Tailwind
colors: {
  custom: {
    50: '#7c7ccd',
    500: '#314ab7',
    950: '#000000',
  },
}
SCSS
$custom: #314ab7;
$custom-light: #7c7ccd;
$custom-dark: #000000;
JSON
{
  "hex": "#314ab7",
  "rgb": {
    "r": 49,
    "g": 74,
    "b": 183
  },
  "hsl": {
    "h": 228.806,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.45865,
    "c": 0.17441,
    "h": 268.6
  },
  "luminance": 0.08969
}

Semantic roles & 50–950 ramp

primary
#314AB7
secondary
#C8B97C
accent
#C447E1
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0914
muted
#7C7B82

Preview Lab

Preview with #314AB7

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

Preview Lab → · Contrast checker → · Palette generator →

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