#314AA5#314AA5

#314AA5 is a dark, vivid blue. Relative luminance 0.083; OKLCH L 44.4% C 0.150 H 268.1°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#314AA5
RGBrgb(49, 74, 165)
HSLhsl(227, 54%, 42%)
HSVhsv(227, 70%, 65%)
CMYKcmyk(70.3%, 55.2%, 0%, 35.3%)
CIE-LABlab(34.53, 22.14, -51.98)
CIE-LCHlch(34.53, 56.50, 293.07°)
OKLaboklab(44.39% -0.0049 -0.1496)
OKLCHoklch(44.39% 0.15 268.1)
XYZxyz(10.5046, 8.2661, 36.6319)
Luminance0.0827 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314AA5 #A58C31
analogous
#3184A5 #314AA5 #5231A5
triadic
#314AA5 #A5314A #4AA531
tetradic
#314AA5 #A53184 #A58C31 #31A552
square
#314AA5 #A53184 #A58C31 #31A552
split-complementary
#314AA5 #A55231 #84A531
monochromatic
#152047 #233576 #314AA5 #4A65C9 #798DD7

Accessibility & contrast

On white

7.91
#314AA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#314AA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314AA5
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314AA5#FFFFFF#000000##FFFFFF
##314AA51.007.912.657.91
#FFFFFF7.911.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057A8
Deuteranopia (green-blind)
#004CA3
Tritanopia (blue-blind)
#006070
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #314aa5;
/* rgb */ color: rgb(49, 74, 165);
/* oklch */ color: oklch(44.4% 0.150 268.1);
Tailwind
colors: {
  custom: {
    50: '#787cc0',
    500: '#314aa5',
    950: '#000000',
  },
}
SCSS
$custom: #314aa5;
$custom-light: #787cc0;
$custom-dark: #000000;
JSON
{
  "hex": "#314aa5",
  "rgb": {
    "r": 49,
    "g": 74,
    "b": 165
  },
  "hsl": {
    "h": 227.069,
    "s": 54.206,
    "l": 41.961
  },
  "oklch": {
    "l": 0.44386,
    "c": 0.14965,
    "h": 268.1
  },
  "luminance": 0.08267
}

Semantic roles & 50–950 ramp

primary
#314AA5
secondary
#C0AF72
accent
#BE4ADE
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #314AA5

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

Preview Lab → · Contrast checker → · Palette generator →

#314AA5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva