#314DB7#314DB7

#314DB7 is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.4% C 0.171 H 267.8°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#314DB7
RGBrgb(49, 77, 183)
HSLhsl(227, 58%, 45%)
HSVhsv(227, 73%, 72%)
CMYKcmyk(73.2%, 57.9%, 0%, 28.2%)
CIE-LABlab(36.70, 26.86, -59.14)
CIE-LCHlch(36.70, 64.96, 294.43°)
OKLaboklab(46.45% -0.0064 -0.1706)
OKLCHoklch(46.45% 0.171 267.8)
XYZxyz(12.4648, 9.3783, 45.9438)
Luminance0.0938 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314DB7 #B79B31
analogous
#3190B7 #314DB7 #5831B7
triadic
#314DB7 #B7314D #4DB731
tetradic
#314DB7 #B73190 #B79B31 #31B758
square
#314DB7 #B73190 #B79B31 #31B758
split-complementary
#314DB7 #B75831 #90B731
monochromatic
#172456 #243987 #314DB7 #546ED1 #8497DE

Accessibility & contrast

On white

7.30
#314DB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#314DB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314DB7
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314DB7#FFFFFF#000000##FFFFFF
##314DB71.007.302.887.30
#FFFFFF7.301.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #314db7;
/* rgb */ color: rgb(49, 77, 183);
/* oklch */ color: oklch(46.4% 0.171 267.8);
Tailwind
colors: {
  custom: {
    50: '#7c7ecd',
    500: '#314db7',
    950: '#000000',
  },
}
SCSS
$custom: #314db7;
$custom-light: #7c7ecd;
$custom-dark: #000000;
JSON
{
  "hex": "#314db7",
  "rgb": {
    "r": 49,
    "g": 77,
    "b": 183
  },
  "hsl": {
    "h": 227.463,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.46447,
    "c": 0.17071,
    "h": 267.8
  },
  "luminance": 0.0938
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #314DB7

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

Preview Lab → · Contrast checker → · Palette generator →

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