#314AA4#314AA4

#314AA4 is a dark, vivid blue. Relative luminance 0.082; OKLCH L 44.3% C 0.148 H 268.1°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#314AA4
RGBrgb(49, 74, 164)
HSLhsl(227, 54%, 42%)
HSVhsv(227, 70%, 64%)
CMYKcmyk(70.1%, 54.9%, 0%, 35.7%)
CIE-LABlab(34.46, 21.77, -51.50)
CIE-LCHlch(34.46, 55.91, 292.91°)
OKLaboklab(44.31% -0.0049 -0.1482)
OKLCHoklch(44.31% 0.148 268.1)
XYZxyz(10.4139, 8.2298, 36.1545)
Luminance0.0823 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314AA4 #A48B31
analogous
#3184A4 #314AA4 #5231A4
triadic
#314AA4 #A4314A #4AA431
tetradic
#314AA4 #A43184 #A48B31 #31A452
square
#314AA4 #A43184 #A48B31 #31A452
split-complementary
#314AA4 #A45231 #84A431
monochromatic
#151F46 #233575 #314AA4 #4965C9 #798DD7

Accessibility & contrast

On white

7.94
#314AA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #314AA4
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314AA4#FFFFFF#000000##FFFFFF
##314AA41.007.942.657.94
#FFFFFF7.941.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0257A7
Deuteranopia (green-blind)
#004CA2
Tritanopia (blue-blind)
#00606F
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #314aa4;
/* rgb */ color: rgb(49, 74, 164);
/* oklch */ color: oklch(44.3% 0.148 268.1);
Tailwind
colors: {
  custom: {
    50: '#787cc0',
    500: '#314aa4',
    950: '#000000',
  },
}
SCSS
$custom: #314aa4;
$custom-light: #787cc0;
$custom-dark: #000000;
JSON
{
  "hex": "#314aa4",
  "rgb": {
    "r": 49,
    "g": 74,
    "b": 164
  },
  "hsl": {
    "h": 226.957,
    "s": 53.991,
    "l": 41.765
  },
  "oklch": {
    "l": 0.44307,
    "c": 0.14824,
    "h": 268.1
  },
  "luminance": 0.08231
}

Semantic roles & 50–950 ramp

primary
#314AA4
secondary
#BFAE72
accent
#BD4ADD
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #314AA4

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

Preview Lab → · Contrast checker → · Palette generator →

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