#314CA7#314CA7

#314CA7 is a dark, vivid blue. Relative luminance 0.086; OKLCH L 45.0% C 0.150 H 267.5°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#314CA7
RGBrgb(49, 76, 167)
HSLhsl(226, 55%, 42%)
HSVhsv(226, 71%, 65%)
CMYKcmyk(70.7%, 54.5%, 0%, 34.5%)
CIE-LABlab(35.22, 21.56, -52.05)
CIE-LCHlch(35.22, 56.34, 292.50°)
OKLaboklab(44.96% -0.0065 -0.1498)
OKLCHoklch(44.96% 0.15 267.5)
XYZxyz(10.8237, 8.6108, 37.6434)
Luminance0.0861 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314CA7 #A78C31
analogous
#3187A7 #314CA7 #5131A7
triadic
#314CA7 #A7314C #4CA731
tetradic
#314CA7 #A73187 #A78C31 #31A751
square
#314CA7 #A73187 #A78C31 #31A751
split-complementary
#314CA7 #A75131 #87A731
monochromatic
#152148 #233678 #314CA7 #4B68CA #7A90D8

Accessibility & contrast

On white

7.71
#314CA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#314CA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314CA7
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314CA7#FFFFFF#000000##FFFFFF
##314CA71.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0558AA
Deuteranopia (green-blind)
#004EA5
Tritanopia (blue-blind)
#006272
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #314ca7;
/* rgb */ color: rgb(49, 76, 167);
/* oklch */ color: oklch(45.0% 0.150 267.5);
Tailwind
colors: {
  custom: {
    50: '#787dc2',
    500: '#314ca7',
    950: '#000000',
  },
}
SCSS
$custom: #314ca7;
$custom-light: #787dc2;
$custom-dark: #000000;
JSON
{
  "hex": "#314ca7",
  "rgb": {
    "r": 49,
    "g": 76,
    "b": 167
  },
  "hsl": {
    "h": 226.271,
    "s": 54.63,
    "l": 42.353
  },
  "oklch": {
    "l": 0.44955,
    "c": 0.1499,
    "h": 267.5
  },
  "luminance": 0.08612
}

Semantic roles & 50–950 ramp

primary
#314CA7
secondary
#C1AF73
accent
#BC4ADE
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #314CA7

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

Preview Lab → · Contrast checker → · Palette generator →

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