#314782#314782

#314782 is a dark, moderate blue. Relative luminance 0.068; OKLCH L 41.1% C 0.102 H 266.6°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#314782
RGBrgb(49, 71, 130)
HSLhsl(224, 45%, 35%)
HSVhsv(224, 62%, 51%)
CMYKcmyk(62.3%, 45.4%, 0%, 49%)
CIE-LABlab(31.28, 11.13, -35.89)
CIE-LCHlch(31.28, 37.57, 287.23°)
OKLaboklab(41.15% -0.0061 -0.1023)
OKLCHoklch(41.15% 0.102 266.6)
XYZxyz(7.5478, 6.7705, 22.0239)
Luminance0.0677 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314782 #826C31
analogous
#316F82 #314782 #443182
triadic
#314782 #823147 #478231
tetradic
#314782 #82316F #826C31 #318244
square
#314782 #82316F #826C31 #318244
split-complementary
#314782 #824431 #6F8231
monochromatic
#0F1629 #202F56 #314782 #425FAE #6881C6

Accessibility & contrast

On white

8.92
#314782 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#314782 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314782
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314782#FFFFFF#000000##FFFFFF
##3147821.008.922.358.92
#FFFFFF8.921.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C4E84
Deuteranopia (green-blind)
#204681
Tritanopia (blue-blind)
#00545E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #314782;
/* rgb */ color: rgb(49, 71, 130);
/* oklch */ color: oklch(41.1% 0.102 266.6);
Tailwind
colors: {
  custom: {
    50: '#7179a7',
    500: '#314782',
    950: '#000000',
  },
}
SCSS
$custom: #314782;
$custom-light: #7179a7;
$custom-dark: #000000;
JSON
{
  "hex": "#314782",
  "rgb": {
    "r": 49,
    "g": 71,
    "b": 130
  },
  "hsl": {
    "h": 223.704,
    "s": 45.251,
    "l": 35.098
  },
  "oklch": {
    "l": 0.41146,
    "c": 0.10247,
    "h": 266.6
  },
  "luminance": 0.06771
}

Semantic roles & 50–950 ramp

primary
#314782
secondary
#AD9962
accent
#B253D5
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08090F
muted
#7B7B7F

Preview Lab

Preview with #314782

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

Preview Lab → · Contrast checker → · Palette generator →

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