#314786#314786

#314786 is a dark, moderate blue. Relative luminance 0.069; OKLCH L 41.4% C 0.109 H 267.1°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#314786
RGBrgb(49, 71, 134)
HSLhsl(224, 46%, 36%)
HSVhsv(224, 63%, 53%)
CMYKcmyk(63.4%, 47%, 0%, 47.5%)
CIE-LABlab(31.53, 12.60, -37.96)
CIE-LCHlch(31.53, 39.99, 288.36°)
OKLaboklab(41.42% -0.0054 -0.1084)
OKLCHoklch(41.42% 0.109 267.1)
XYZxyz(7.8215, 6.8800, 23.4654)
Luminance0.0688 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314786 #867031
analogous
#317186 #314786 #453186
triadic
#314786 #863147 #478631
tetradic
#314786 #863171 #867031 #318645
square
#314786 #863171 #867031 #318645
split-complementary
#314786 #864531 #718631
monochromatic
#10182C #212F59 #314786 #415FB3 #6982C8

Accessibility & contrast

On white

8.84
#314786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #314786
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314786#FFFFFF#000000##FFFFFF
##3147861.008.842.388.84
#FFFFFF8.841.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#294E88
Deuteranopia (green-blind)
#1B4785
Tritanopia (blue-blind)
#005560
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #314786;
/* rgb */ color: rgb(49, 71, 134);
/* oklch */ color: oklch(41.4% 0.109 267.1);
Tailwind
colors: {
  custom: {
    50: '#7279aa',
    500: '#314786',
    950: '#000000',
  },
}
SCSS
$custom: #314786;
$custom-light: #7279aa;
$custom-dark: #000000;
JSON
{
  "hex": "#314786",
  "rgb": {
    "r": 49,
    "g": 71,
    "b": 134
  },
  "hsl": {
    "h": 224.471,
    "s": 46.448,
    "l": 35.882
  },
  "oklch": {
    "l": 0.41423,
    "c": 0.10851,
    "h": 267.1
  },
  "luminance": 0.06881
}

Semantic roles & 50–950 ramp

primary
#314786
secondary
#B09C63
accent
#B452D6
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #314786

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

Preview Lab → · Contrast checker → · Palette generator →

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