#314871#314871

#314871 is a dark, moderate blue. Relative luminance 0.065; OKLCH L 40.3% C 0.075 H 261.3°. Best body text is #FFFFFF at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#314871
RGBrgb(49, 72, 113)
HSLhsl(218, 40%, 32%)
HSVhsv(218, 57%, 44%)
CMYKcmyk(56.6%, 36.3%, 0%, 55.7%)
CIE-LABlab(30.59, 4.31, -26.35)
CIE-LCHlch(30.59, 26.70, 279.29°)
OKLaboklab(40.29% -0.0113 -0.0744)
OKLCHoklch(40.29% 0.075 261.3)
XYZxyz(6.5636, 6.4795, 16.5244)
Luminance0.0648 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314871 #715A31
analogous
#316871 #314871 #3A3171
triadic
#314871 #713148 #487131
tetradic
#314871 #713168 #715A31 #31713A
square
#314871 #713168 #715A31 #31713A
split-complementary
#314871 #713A31 #687131
monochromatic
#0C121C #1E2D46 #314871 #44639C #6282BB

Accessibility & contrast

On white

9.15
#314871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#314871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314871
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314871#FFFFFF#000000##FFFFFF
##3148711.009.152.309.15
#FFFFFF9.151.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#384B73
Deuteranopia (green-blind)
#304570
Tritanopia (blue-blind)
#0D5157
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #314871;
/* rgb */ color: rgb(49, 72, 113);
/* oklch */ color: oklch(40.3% 0.075 261.3);
Tailwind
colors: {
  custom: {
    50: '#6e7a9a',
    500: '#314871',
    950: '#000000',
  },
}
SCSS
$custom: #314871;
$custom-light: #6e7a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#314871",
  "rgb": {
    "r": 49,
    "g": 72,
    "b": 113
  },
  "hsl": {
    "h": 218.438,
    "s": 39.506,
    "l": 31.765
  },
  "oklch": {
    "l": 0.40293,
    "c": 0.07524,
    "h": 261.3
  },
  "luminance": 0.0648
}

Semantic roles & 50–950 ramp

primary
#314871
secondary
#A2895C
accent
#A558CF
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07090E
muted
#7A7B7E

Preview Lab

Preview with #314871

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

Preview Lab → · Contrast checker → · Palette generator →

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