#314796#314796

#314796 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 42.6% C 0.132 H 268.5°. Best body text is #FFFFFF at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#314796
RGBrgb(49, 71, 150)
HSLhsl(227, 51%, 39%)
HSVhsv(227, 67%, 59%)
CMYKcmyk(67.3%, 52.7%, 0%, 41.2%)
CIE-LABlab(32.61, 18.55, -46.03)
CIE-LCHlch(32.61, 49.62, 291.95°)
OKLaboklab(42.59% -0.0033 -0.1321)
OKLCHoklch(42.59% 0.132 268.5)
XYZxyz(9.0230, 7.3606, 29.7935)
Luminance0.0736 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314796 #968031
analogous
#317A96 #314796 #4E3196
triadic
#314796 #963147 #479631
tetradic
#314796 #96317A #968031 #31964E
square
#314796 #96317A #968031 #31964E
split-complementary
#314796 #964E31 #7A9631
monochromatic
#131B3A #223168 #314796 #435EC1 #7186D1

Accessibility & contrast

On white

8.49
#314796 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#314796 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314796
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314796#FFFFFF#000000##FFFFFF
##3147961.008.492.478.49
#FFFFFF8.491.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#175199
Deuteranopia (green-blind)
#004894
Tritanopia (blue-blind)
#005A67
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #314796;
/* rgb */ color: rgb(49, 71, 150);
/* oklch */ color: oklch(42.6% 0.132 268.5);
Tailwind
colors: {
  custom: {
    50: '#7579b5',
    500: '#314796',
    950: '#000000',
  },
}
SCSS
$custom: #314796;
$custom-light: #7579b5;
$custom-dark: #000000;
JSON
{
  "hex": "#314796",
  "rgb": {
    "r": 49,
    "g": 71,
    "b": 150
  },
  "hsl": {
    "h": 226.931,
    "s": 50.754,
    "l": 39.02
  },
  "oklch": {
    "l": 0.42593,
    "c": 0.13214,
    "h": 268.5
  },
  "luminance": 0.07361
}

Semantic roles & 50–950 ramp

primary
#314796
secondary
#B8A76A
accent
#BC4EDA
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #314796

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

Preview Lab → · Contrast checker → · Palette generator →

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