#314AA7#314AA7

#314AA7 is a dark, vivid blue. Relative luminance 0.083; OKLCH L 44.5% C 0.152 H 268.2°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#314AA7
RGBrgb(49, 74, 167)
HSLhsl(227, 55%, 42%)
HSVhsv(227, 71%, 65%)
CMYKcmyk(70.7%, 55.7%, 0%, 34.5%)
CIE-LABlab(34.68, 22.89, -52.93)
CIE-LCHlch(34.68, 57.67, 293.38°)
OKLaboklab(44.55% -0.0047 -0.1524)
OKLCHoklch(44.55% 0.152 268.2)
XYZxyz(10.6880, 8.3395, 37.5981)
Luminance0.0834 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314AA7 #A78E31
analogous
#3185A7 #314AA7 #5331A7
triadic
#314AA7 #A7314A #4AA731
tetradic
#314AA7 #A73185 #A78E31 #31A753
square
#314AA7 #A73185 #A78E31 #31A753
split-complementary
#314AA7 #A75331 #85A731
monochromatic
#152048 #233578 #314AA7 #4B66CA #7A8ED8

Accessibility & contrast

On white

7.87
#314AA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#314AA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314AA7
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314AA7#FFFFFF#000000##FFFFFF
##314AA71.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057AA
Deuteranopia (green-blind)
#004CA5
Tritanopia (blue-blind)
#006171
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #314aa7;
/* rgb */ color: rgb(49, 74, 167);
/* oklch */ color: oklch(44.5% 0.152 268.2);
Tailwind
colors: {
  custom: {
    50: '#787cc2',
    500: '#314aa7',
    950: '#000000',
  },
}
SCSS
$custom: #314aa7;
$custom-light: #787cc2;
$custom-dark: #000000;
JSON
{
  "hex": "#314aa7",
  "rgb": {
    "r": 49,
    "g": 74,
    "b": 167
  },
  "hsl": {
    "h": 227.288,
    "s": 54.63,
    "l": 42.353
  },
  "oklch": {
    "l": 0.44545,
    "c": 0.15245,
    "h": 268.2
  },
  "luminance": 0.08341
}

Semantic roles & 50–950 ramp

primary
#314AA7
secondary
#C1B073
accent
#BF4ADE
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #314AA7

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

Preview Lab → · Contrast checker → · Palette generator →

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