#314771#314771

#314771 is a dark, moderate blue. Relative luminance 0.064; OKLCH L 40.1% C 0.076 H 262.4°. Best body text is #FFFFFF at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#314771
RGBrgb(49, 71, 113)
HSLhsl(219, 40%, 32%)
HSVhsv(219, 57%, 44%)
CMYKcmyk(56.6%, 37.2%, 0%, 55.7%)
CIE-LABlab(30.28, 4.97, -26.84)
CIE-LCHlch(30.28, 27.30, 280.50°)
OKLaboklab(40.05% -0.01 -0.0758)
OKLCHoklch(40.05% 0.076 262.4)
XYZxyz(6.4995, 6.3512, 16.5030)
Luminance0.0635 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314771 #715B31
analogous
#316771 #314771 #3B3171
triadic
#314771 #713147 #477131
tetradic
#314771 #713167 #715B31 #31713B
square
#314771 #713167 #715B31 #31713B
split-complementary
#314771 #713B31 #677131
monochromatic
#0C111C #1E2C46 #314771 #44629C #6280BB

Accessibility & contrast

On white

9.25
#314771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#314771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314771
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314771#FFFFFF#000000##FFFFFF
##3147711.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#364B73
Deuteranopia (green-blind)
#2E4570
Tritanopia (blue-blind)
#0D5056
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #314771;
/* rgb */ color: rgb(49, 71, 113);
/* oklch */ color: oklch(40.1% 0.076 262.4);
Tailwind
colors: {
  custom: {
    50: '#6e799a',
    500: '#314771',
    950: '#000000',
  },
}
SCSS
$custom: #314771;
$custom-light: #6e799a;
$custom-dark: #000000;
JSON
{
  "hex": "#314771",
  "rgb": {
    "r": 49,
    "g": 71,
    "b": 113
  },
  "hsl": {
    "h": 219.375,
    "s": 39.506,
    "l": 31.765
  },
  "oklch": {
    "l": 0.40052,
    "c": 0.07646,
    "h": 262.4
  },
  "luminance": 0.06352
}

Semantic roles & 50–950 ramp

primary
#314771
secondary
#A28A5C
accent
#A658CF
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07090E
muted
#7A7B7E

Preview Lab

Preview with #314771

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

Preview Lab → · Contrast checker → · Palette generator →

#314771 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva