#314DA8#314DA8

#314DA8 is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.2% C 0.150 H 267.2°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#314DA8
RGBrgb(49, 77, 168)
HSLhsl(226, 55%, 43%)
HSVhsv(226, 71%, 66%)
CMYKcmyk(70.8%, 54.2%, 0%, 34.1%)
CIE-LABlab(35.57, 21.27, -52.09)
CIE-LCHlch(35.57, 56.26, 292.21°)
OKLaboklab(45.24% -0.0072 -0.1498)
OKLCHoklch(45.24% 0.15 267.2)
XYZxyz(10.9859, 8.7868, 38.1552)
Luminance0.0879 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314DA8 #A88C31
analogous
#3189A8 #314DA8 #5031A8
triadic
#314DA8 #A8314D #4DA831
tetradic
#314DA8 #A83189 #A88C31 #31A850
square
#314DA8 #A83189 #A88C31 #31A850
split-complementary
#314DA8 #A85031 #89A831
monochromatic
#152249 #233779 #314DA8 #4C69CB #7B91D8

Accessibility & contrast

On white

7.62
#314DA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#314DA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314DA8
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314DA8#FFFFFF#000000##FFFFFF
##314DA81.007.622.767.62
#FFFFFF7.621.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0859AB
Deuteranopia (green-blind)
#004EA6
Tritanopia (blue-blind)
#006373
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #314da8;
/* rgb */ color: rgb(49, 77, 168);
/* oklch */ color: oklch(45.2% 0.150 267.2);
Tailwind
colors: {
  custom: {
    50: '#787ec2',
    500: '#314da8',
    950: '#000000',
  },
}
SCSS
$custom: #314da8;
$custom-light: #787ec2;
$custom-dark: #000000;
JSON
{
  "hex": "#314da8",
  "rgb": {
    "r": 49,
    "g": 77,
    "b": 168
  },
  "hsl": {
    "h": 225.882,
    "s": 54.839,
    "l": 42.549
  },
  "oklch": {
    "l": 0.4524,
    "c": 0.15003,
    "h": 267.2
  },
  "luminance": 0.08788
}

Semantic roles & 50–950 ramp

primary
#314DA8
secondary
#C1AF74
accent
#BB4ADE
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #314DA8

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

Preview Lab → · Contrast checker → · Palette generator →

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