#314EA8#314EA8

#314EA8 is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.4% C 0.149 H 266.9°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#314EA8
RGBrgb(49, 78, 168)
HSLhsl(225, 55%, 43%)
HSVhsv(225, 71%, 66%)
CMYKcmyk(70.8%, 53.6%, 0%, 34.1%)
CIE-LABlab(35.84, 20.61, -51.64)
CIE-LCHlch(35.84, 55.60, 291.75°)
OKLaboklab(45.45% -0.0081 -0.1485)
OKLCHoklch(45.45% 0.149 266.9)
XYZxyz(11.0564, 8.9278, 38.1787)
Luminance0.0893 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314EA8 #A88B31
analogous
#318AA8 #314EA8 #4F31A8
triadic
#314EA8 #A8314E #4EA831
tetradic
#314EA8 #A8318A #A88B31 #31A84F
square
#314EA8 #A8318A #A88B31 #31A84F
split-complementary
#314EA8 #A84F31 #8AA831
monochromatic
#152249 #233879 #314EA8 #4C6BCB #7B92D8

Accessibility & contrast

On white

7.54
#314EA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #314EA8
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314EA8#FFFFFF#000000##FFFFFF
##314EA81.007.542.797.54
#FFFFFF7.541.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F5AAB
Deuteranopia (green-blind)
#004FA6
Tritanopia (blue-blind)
#006473
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #314ea8;
/* rgb */ color: rgb(49, 78, 168);
/* oklch */ color: oklch(45.4% 0.149 266.9);
Tailwind
colors: {
  custom: {
    50: '#787fc2',
    500: '#314ea8',
    950: '#000000',
  },
}
SCSS
$custom: #314ea8;
$custom-light: #787fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#314ea8",
  "rgb": {
    "r": 49,
    "g": 78,
    "b": 168
  },
  "hsl": {
    "h": 225.378,
    "s": 54.839,
    "l": 42.549
  },
  "oklch": {
    "l": 0.45447,
    "c": 0.14875,
    "h": 266.9
  },
  "luminance": 0.08929
}

Semantic roles & 50–950 ramp

primary
#314EA8
secondary
#C1AE74
accent
#BA4ADE
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #314EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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