#314794#314794

#314794 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.4% C 0.129 H 268.4°. Best body text is #FFFFFF at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#314794
RGBrgb(49, 71, 148)
HSLhsl(227, 50%, 39%)
HSVhsv(227, 67%, 58%)
CMYKcmyk(66.9%, 52%, 0%, 42%)
CIE-LABlab(32.47, 17.80, -45.04)
CIE-LCHlch(32.47, 48.43, 291.57°)
OKLaboklab(42.44% -0.0035 -0.1292)
OKLCHoklch(42.44% 0.129 268.4)
XYZxyz(8.8633, 7.2967, 28.9526)
Luminance0.0730 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314794 #947E31
analogous
#317894 #314794 #4C3194
triadic
#314794 #943147 #479431
tetradic
#314794 #943178 #947E31 #31944C
square
#314794 #943178 #947E31 #31944C
split-complementary
#314794 #944C31 #789431
monochromatic
#131B38 #223166 #314794 #425EC0 #7085D0

Accessibility & contrast

On white

8.54
#314794 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#314794 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314794
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314794#FFFFFF#000000##FFFFFF
##3147941.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A5197
Deuteranopia (green-blind)
#004892
Tritanopia (blue-blind)
#005966
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #314794;
/* rgb */ color: rgb(49, 71, 148);
/* oklch */ color: oklch(42.4% 0.129 268.4);
Tailwind
colors: {
  custom: {
    50: '#7479b4',
    500: '#314794',
    950: '#000000',
  },
}
SCSS
$custom: #314794;
$custom-light: #7479b4;
$custom-dark: #000000;
JSON
{
  "hex": "#314794",
  "rgb": {
    "r": 49,
    "g": 71,
    "b": 148
  },
  "hsl": {
    "h": 226.667,
    "s": 50.254,
    "l": 38.627
  },
  "oklch": {
    "l": 0.42441,
    "c": 0.12923,
    "h": 268.4
  },
  "luminance": 0.07298
}

Semantic roles & 50–950 ramp

primary
#314794
secondary
#B7A669
accent
#BB4EDA
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #314794

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

Preview Lab → · Contrast checker → · Palette generator →

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