#314DA7#314DA7

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

Color values

HEX#314DA7
RGBrgb(49, 77, 167)
HSLhsl(226, 55%, 42%)
HSVhsv(226, 71%, 65%)
CMYKcmyk(70.7%, 53.9%, 0%, 34.5%)
CIE-LABlab(35.50, 20.90, -51.61)
CIE-LCHlch(35.50, 55.68, 292.04°)
OKLaboklab(45.16% -0.0073 -0.1484)
OKLCHoklch(45.16% 0.149 267.2)
XYZxyz(10.8931, 8.7496, 37.6665)
Luminance0.0875 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314DA7 #A78B31
analogous
#3188A7 #314DA7 #5031A7
triadic
#314DA7 #A7314D #4DA731
tetradic
#314DA7 #A73188 #A78B31 #31A750
square
#314DA7 #A73188 #A78B31 #31A750
split-complementary
#314DA7 #A75031 #88A731
monochromatic
#152148 #233778 #314DA7 #4B69CA #7A91D8

Accessibility & contrast

On white

7.64
#314DA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#314DA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314DA7
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314DA7#FFFFFF#000000##FFFFFF
##314DA71.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C59AA
Deuteranopia (green-blind)
#004EA5
Tritanopia (blue-blind)
#006372
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #314da7;
/* rgb */ color: rgb(49, 77, 167);
/* oklch */ color: oklch(45.2% 0.149 267.2);
Tailwind
colors: {
  custom: {
    50: '#787ec2',
    500: '#314da7',
    950: '#000000',
  },
}
SCSS
$custom: #314da7;
$custom-light: #787ec2;
$custom-dark: #000000;
JSON
{
  "hex": "#314da7",
  "rgb": {
    "r": 49,
    "g": 77,
    "b": 167
  },
  "hsl": {
    "h": 225.763,
    "s": 54.63,
    "l": 42.353
  },
  "oklch": {
    "l": 0.45162,
    "c": 0.14862,
    "h": 267.2
  },
  "luminance": 0.08751
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #314DA7

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

Preview Lab → · Contrast checker → · Palette generator →

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