#314F82#314F82

#314F82 is a dark, moderate blue. Relative luminance 0.079; OKLCH L 43.0% C 0.092 H 260.4°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#314F82
RGBrgb(49, 79, 130)
HSLhsl(218, 45%, 35%)
HSVhsv(218, 62%, 51%)
CMYKcmyk(62.3%, 39.2%, 0%, 49%)
CIE-LABlab(33.68, 5.80, -32.07)
CIE-LCHlch(33.68, 32.59, 280.26°)
OKLaboklab(43% -0.0154 -0.091)
OKLCHoklch(43% 0.092 260.4)
XYZxyz(8.0905, 7.8559, 22.2048)
Luminance0.0786 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314F82 #826431
analogous
#317782 #314F82 #3C3182
triadic
#314F82 #82314F #4F8231
tetradic
#314F82 #823177 #826431 #31823C
square
#314F82 #823177 #826431 #31823C
split-complementary
#314F82 #823C31 #778231
monochromatic
#0F1929 #203456 #314F82 #426AAE #688AC6

Accessibility & contrast

On white

8.17
#314F82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#314F82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314F82
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314F82#FFFFFF#000000##FFFFFF
##314F821.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#395384
Deuteranopia (green-blind)
#2E4C81
Tritanopia (blue-blind)
#005A62
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #314f82;
/* rgb */ color: rgb(49, 79, 130);
/* oklch */ color: oklch(43.0% 0.092 260.4);
Tailwind
colors: {
  custom: {
    50: '#7180a6',
    500: '#314f82',
    950: '#000000',
  },
}
SCSS
$custom: #314f82;
$custom-light: #7180a6;
$custom-dark: #000000;
JSON
{
  "hex": "#314f82",
  "rgb": {
    "r": 49,
    "g": 79,
    "b": 130
  },
  "hsl": {
    "h": 217.778,
    "s": 45.251,
    "l": 35.098
  },
  "oklch": {
    "l": 0.43001,
    "c": 0.09228,
    "h": 260.4
  },
  "luminance": 0.07857
}

Semantic roles & 50–950 ramp

primary
#314F82
secondary
#AD9162
accent
#A553D5
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A0F
muted
#7B7C7F

Preview Lab

Preview with #314F82

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

Preview Lab → · Contrast checker → · Palette generator →

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