#314787#314787

#314787 is a dark, moderate blue. Relative luminance 0.069; OKLCH L 41.5% C 0.110 H 267.2°. Best body text is #FFFFFF at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#314787
RGBrgb(49, 71, 135)
HSLhsl(225, 47%, 36%)
HSVhsv(225, 64%, 53%)
CMYKcmyk(63.7%, 47.4%, 0%, 47.1%)
CIE-LABlab(31.60, 12.97, -38.47)
CIE-LCHlch(31.60, 40.60, 288.63°)
OKLaboklab(41.49% -0.0053 -0.1099)
OKLCHoklch(41.49% 0.11 267.2)
XYZxyz(7.8915, 6.9080, 23.8345)
Luminance0.0691 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314787 #877131
analogous
#317287 #314787 #463187
triadic
#314787 #873147 #478731
tetradic
#314787 #873172 #877131 #318746
square
#314787 #873172 #877131 #318746
split-complementary
#314787 #874631 #728731
monochromatic
#10182D #212F5A #314787 #415FB4 #6A82C9

Accessibility & contrast

On white

8.82
#314787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#314787 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314787
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314787#FFFFFF#000000##FFFFFF
##3147871.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#284E89
Deuteranopia (green-blind)
#1A4786
Tritanopia (blue-blind)
#005660
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #314787;
/* rgb */ color: rgb(49, 71, 135);
/* oklch */ color: oklch(41.5% 0.110 267.2);
Tailwind
colors: {
  custom: {
    50: '#7279aa',
    500: '#314787',
    950: '#000000',
  },
}
SCSS
$custom: #314787;
$custom-light: #7279aa;
$custom-dark: #000000;
JSON
{
  "hex": "#314787",
  "rgb": {
    "r": 49,
    "g": 71,
    "b": 135
  },
  "hsl": {
    "h": 224.651,
    "s": 46.739,
    "l": 36.078
  },
  "oklch": {
    "l": 0.41493,
    "c": 0.11001,
    "h": 267.2
  },
  "luminance": 0.06909
}

Semantic roles & 50–950 ramp

primary
#314787
secondary
#B09D64
accent
#B451D6
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #314787

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

Preview Lab → · Contrast checker → · Palette generator →

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