#314DA5#314DA5

#314DA5 is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.0% C 0.146 H 267.1°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#314DA5
RGBrgb(49, 77, 165)
HSLhsl(226, 54%, 42%)
HSVhsv(226, 70%, 65%)
CMYKcmyk(70.3%, 53.3%, 0%, 35.3%)
CIE-LABlab(35.35, 20.15, -50.65)
CIE-LCHlch(35.35, 54.51, 291.69°)
OKLaboklab(45.01% -0.0075 -0.1456)
OKLCHoklch(45.01% 0.146 267.1)
XYZxyz(10.7097, 8.6763, 36.7003)
Luminance0.0868 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314DA5 #A58931
analogous
#3187A5 #314DA5 #4F31A5
triadic
#314DA5 #A5314D #4DA531
tetradic
#314DA5 #A53187 #A58931 #31A54F
square
#314DA5 #A53187 #A58931 #31A54F
split-complementary
#314DA5 #A54F31 #87A531
monochromatic
#152147 #233776 #314DA5 #4A69C9 #7990D7

Accessibility & contrast

On white

7.68
#314DA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#314DA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314DA5
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314DA5#FFFFFF#000000##FFFFFF
##314DA51.007.682.747.68
#FFFFFF7.681.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1159A8
Deuteranopia (green-blind)
#004EA3
Tritanopia (blue-blind)
#006271
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #314da5;
/* rgb */ color: rgb(49, 77, 165);
/* oklch */ color: oklch(45.0% 0.146 267.1);
Tailwind
colors: {
  custom: {
    50: '#787ec0',
    500: '#314da5',
    950: '#000000',
  },
}
SCSS
$custom: #314da5;
$custom-light: #787ec0;
$custom-dark: #000000;
JSON
{
  "hex": "#314da5",
  "rgb": {
    "r": 49,
    "g": 77,
    "b": 165
  },
  "hsl": {
    "h": 225.517,
    "s": 54.206,
    "l": 41.961
  },
  "oklch": {
    "l": 0.45007,
    "c": 0.1458,
    "h": 267.1
  },
  "luminance": 0.08677
}

Semantic roles & 50–950 ramp

primary
#314DA5
secondary
#C0AD72
accent
#BA4ADE
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #314DA5

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

Preview Lab → · Contrast checker → · Palette generator →

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