#314798#314798

#314798 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 42.7% C 0.135 H 268.7°. Best body text is #FFFFFF at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#314798
RGBrgb(49, 71, 152)
HSLhsl(227, 51%, 39%)
HSVhsv(227, 68%, 60%)
CMYKcmyk(67.8%, 53.3%, 0%, 40.4%)
CIE-LABlab(32.76, 19.29, -47.01)
CIE-LCHlch(32.76, 50.81, 292.31°)
OKLaboklab(42.75% -0.0032 -0.135)
OKLCHoklch(42.75% 0.135 268.7)
XYZxyz(9.1854, 7.4256, 30.6489)
Luminance0.0743 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314798 #988231
analogous
#317B98 #314798 #4E3198
triadic
#314798 #983147 #479831
tetradic
#314798 #98317B #988231 #31984E
square
#314798 #98317B #988231 #31984E
split-complementary
#314798 #984E31 #7B9831
monochromatic
#131C3B #22316A #314798 #445FC3 #7286D2

Accessibility & contrast

On white

8.45
#314798 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#314798 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314798
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314798#FFFFFF#000000##FFFFFF
##3147981.008.452.498.45
#FFFFFF8.451.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13529B
Deuteranopia (green-blind)
#004996
Tritanopia (blue-blind)
#005A68
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #314798;
/* rgb */ color: rgb(49, 71, 152);
/* oklch */ color: oklch(42.7% 0.135 268.7);
Tailwind
colors: {
  custom: {
    50: '#7579b7',
    500: '#314798',
    950: '#000000',
  },
}
SCSS
$custom: #314798;
$custom-light: #7579b7;
$custom-dark: #000000;
JSON
{
  "hex": "#314798",
  "rgb": {
    "r": 49,
    "g": 71,
    "b": 152
  },
  "hsl": {
    "h": 227.184,
    "s": 51.244,
    "l": 39.412
  },
  "oklch": {
    "l": 0.42746,
    "c": 0.13504,
    "h": 268.7
  },
  "luminance": 0.07426
}

Semantic roles & 50–950 ramp

primary
#314798
secondary
#B9A96B
accent
#BC4DDB
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #314798

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

Preview Lab → · Contrast checker → · Palette generator →

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