#314987#314987

#314987 is a dark, moderate blue. Relative luminance 0.072; OKLCH L 41.9% C 0.107 H 266.0°. Best body text is #FFFFFF at 8.63:1 contrast (WCAG AA passes).

Color values

HEX#314987
RGBrgb(49, 73, 135)
HSLhsl(223, 47%, 36%)
HSVhsv(223, 64%, 53%)
CMYKcmyk(63.7%, 45.9%, 0%, 47.1%)
CIE-LABlab(32.18, 11.63, -37.53)
CIE-LCHlch(32.18, 39.29, 287.21°)
OKLaboklab(41.94% -0.0075 -0.1071)
OKLCHoklch(41.94% 0.107 266)
XYZxyz(8.0208, 7.1666, 23.8776)
Luminance0.0717 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314987 #876F31
analogous
#317487 #314987 #443187
triadic
#314987 #873149 #498731
tetradic
#314987 #873174 #876F31 #318744
square
#314987 #873174 #876F31 #318744
split-complementary
#314987 #874431 #748731
monochromatic
#10182D #21315A #314987 #4161B4 #6A84C9

Accessibility & contrast

On white

8.63
#314987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#314987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314987
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314987#FFFFFF#000000##FFFFFF
##3149871.008.632.438.63
#FFFFFF8.631.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C5089
Deuteranopia (green-blind)
#1F4886
Tritanopia (blue-blind)
#005761
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #314987;
/* rgb */ color: rgb(49, 73, 135);
/* oklch */ color: oklch(41.9% 0.107 266.0);
Tailwind
colors: {
  custom: {
    50: '#727baa',
    500: '#314987',
    950: '#000000',
  },
}
SCSS
$custom: #314987;
$custom-light: #727baa;
$custom-dark: #000000;
JSON
{
  "hex": "#314987",
  "rgb": {
    "r": 49,
    "g": 73,
    "b": 135
  },
  "hsl": {
    "h": 223.256,
    "s": 46.739,
    "l": 36.078
  },
  "oklch": {
    "l": 0.41942,
    "c": 0.10735,
    "h": 266
  },
  "luminance": 0.07167
}

Semantic roles & 50–950 ramp

primary
#314987
secondary
#B09B64
accent
#B151D6
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #314987

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

Preview Lab → · Contrast checker → · Palette generator →

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