#314792#314792

#314792 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.3% C 0.126 H 268.3°. Best body text is #FFFFFF at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#314792
RGBrgb(49, 71, 146)
HSLhsl(226, 50%, 38%)
HSVhsv(226, 66%, 57%)
CMYKcmyk(66.4%, 51.4%, 0%, 42.7%)
CIE-LABlab(32.33, 17.06, -44.04)
CIE-LCHlch(32.33, 47.23, 291.17°)
OKLaboklab(42.29% -0.0038 -0.1263)
OKLCHoklch(42.29% 0.126 268.3)
XYZxyz(8.7064, 7.2340, 28.1260)
Luminance0.0723 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314792 #927C31
analogous
#317792 #314792 #4B3192
triadic
#314792 #923147 #479231
tetradic
#314792 #923177 #927C31 #31924B
square
#314792 #923177 #927C31 #31924B
split-complementary
#314792 #924B31 #779231
monochromatic
#121A36 #223164 #314792 #415EBF #6F85CF

Accessibility & contrast

On white

8.58
#314792 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#314792 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314792
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314792#FFFFFF#000000##FFFFFF
##3147921.008.582.458.58
#FFFFFF8.581.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D5195
Deuteranopia (green-blind)
#004890
Tritanopia (blue-blind)
#005865
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #314792;
/* rgb */ color: rgb(49, 71, 146);
/* oklch */ color: oklch(42.3% 0.126 268.3);
Tailwind
colors: {
  custom: {
    50: '#7479b2',
    500: '#314792',
    950: '#000000',
  },
}
SCSS
$custom: #314792;
$custom-light: #7479b2;
$custom-dark: #000000;
JSON
{
  "hex": "#314792",
  "rgb": {
    "r": 49,
    "g": 71,
    "b": 146
  },
  "hsl": {
    "h": 226.392,
    "s": 49.744,
    "l": 38.235
  },
  "oklch": {
    "l": 0.42291,
    "c": 0.12632,
    "h": 268.3
  },
  "luminance": 0.07235
}

Semantic roles & 50–950 ramp

primary
#314792
secondary
#B6A569
accent
#BA4FD9
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #314792

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

Preview Lab → · Contrast checker → · Palette generator →

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