#314AA6#314AA6

#314AA6 is a dark, vivid blue. Relative luminance 0.083; OKLCH L 44.5% C 0.151 H 268.2°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#314AA6
RGBrgb(49, 74, 166)
HSLhsl(227, 54%, 42%)
HSVhsv(227, 70%, 65%)
CMYKcmyk(70.5%, 55.4%, 0%, 34.9%)
CIE-LABlab(34.61, 22.52, -52.46)
CIE-LCHlch(34.61, 57.08, 293.23°)
OKLaboklab(44.47% -0.0048 -0.151)
OKLCHoklch(44.47% 0.151 268.2)
XYZxyz(10.5960, 8.3026, 37.1132)
Luminance0.0830 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314AA6 #A68D31
analogous
#3185A6 #314AA6 #5231A6
triadic
#314AA6 #A6314A #4AA631
tetradic
#314AA6 #A63185 #A68D31 #31A652
square
#314AA6 #A63185 #A68D31 #31A652
split-complementary
#314AA6 #A65231 #85A631
monochromatic
#152047 #233577 #314AA6 #4A66CA #7A8ED8

Accessibility & contrast

On white

7.89
#314AA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#314AA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314AA6
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314AA6#FFFFFF#000000##FFFFFF
##314AA61.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #314aa6;
/* rgb */ color: rgb(49, 74, 166);
/* oklch */ color: oklch(44.5% 0.151 268.2);
Tailwind
colors: {
  custom: {
    50: '#787cc1',
    500: '#314aa6',
    950: '#000000',
  },
}
SCSS
$custom: #314aa6;
$custom-light: #787cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#314aa6",
  "rgb": {
    "r": 49,
    "g": 74,
    "b": 166
  },
  "hsl": {
    "h": 227.179,
    "s": 54.419,
    "l": 42.157
  },
  "oklch": {
    "l": 0.44466,
    "c": 0.15106,
    "h": 268.2
  },
  "luminance": 0.08304
}

Semantic roles & 50–950 ramp

primary
#314AA6
secondary
#C0B073
accent
#BE4ADE
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #314AA6

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

Preview Lab → · Contrast checker → · Palette generator →

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