#314CB7#314CB7

#314CB7 is a mid, vivid blue. Relative luminance 0.092; OKLCH L 46.3% C 0.172 H 268.1°. Best body text is #FFFFFF at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#314CB7
RGBrgb(49, 76, 183)
HSLhsl(228, 58%, 45%)
HSVhsv(228, 73%, 72%)
CMYKcmyk(73.2%, 58.5%, 0%, 28.2%)
CIE-LABlab(36.44, 27.52, -59.57)
CIE-LCHlch(36.44, 65.62, 294.79°)
OKLaboklab(46.25% -0.0057 -0.1719)
OKLCHoklch(46.25% 0.172 268.1)
XYZxyz(12.3953, 9.2394, 45.9207)
Luminance0.0924 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314CB7 #B79C31
analogous
#318FB7 #314CB7 #5931B7
triadic
#314CB7 #B7314C #4CB731
tetradic
#314CB7 #B7318F #B79C31 #31B759
square
#314CB7 #B7318F #B79C31 #31B759
split-complementary
#314CB7 #B75931 #8FB731
monochromatic
#172456 #243887 #314CB7 #546DD1 #8496DE

Accessibility & contrast

On white

7.37
#314CB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#314CB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314CB7
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314CB7#FFFFFF#000000##FFFFFF
##314CB71.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBB
Deuteranopia (green-blind)
#0050B5
Tritanopia (blue-blind)
#00677A
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #314cb7;
/* rgb */ color: rgb(49, 76, 183);
/* oklch */ color: oklch(46.3% 0.172 268.1);
Tailwind
colors: {
  custom: {
    50: '#7c7dcd',
    500: '#314cb7',
    950: '#000000',
  },
}
SCSS
$custom: #314cb7;
$custom-light: #7c7dcd;
$custom-dark: #000000;
JSON
{
  "hex": "#314cb7",
  "rgb": {
    "r": 49,
    "g": 76,
    "b": 183
  },
  "hsl": {
    "h": 227.91,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.46252,
    "c": 0.17195,
    "h": 268.1
  },
  "luminance": 0.09241
}

Semantic roles & 50–950 ramp

primary
#314CB7
secondary
#C8B87C
accent
#C247E1
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0914
muted
#7C7B82

Preview Lab

Preview with #314CB7

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

Preview Lab → · Contrast checker → · Palette generator →

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