#314BB5#314BB5

#314BB5 is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.9% C 0.170 H 268.3°. Best body text is #FFFFFF at 7.49:1 contrast (WCAG AA passes).

Color values

HEX#314BB5
RGBrgb(49, 75, 181)
HSLhsl(228, 57%, 45%)
HSVhsv(228, 73%, 71%)
CMYKcmyk(72.9%, 58.6%, 0%, 29%)
CIE-LABlab(36.02, 27.43, -59.07)
CIE-LCHlch(36.02, 65.13, 294.91°)
OKLaboklab(45.89% -0.005 -0.1704)
OKLCHoklch(45.89% 0.17 268.3)
XYZxyz(12.1203, 9.0201, 44.8094)
Luminance0.0902 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314BB5 #B59B31
analogous
#318DB5 #314BB5 #5931B5
triadic
#314BB5 #B5314B #4BB531
tetradic
#314BB5 #B5318D #B59B31 #31B559
square
#314BB5 #B5318D #B59B31 #31B559
split-complementary
#314BB5 #B55931 #8DB531
monochromatic
#172355 #243785 #314BB5 #536CD0 #8395DD

Accessibility & contrast

On white

7.49
#314BB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#314BB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314BB5
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314BB5#FFFFFF#000000##FFFFFF
##314BB51.007.492.807.49
#FFFFFF7.491.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB9
Deuteranopia (green-blind)
#004FB3
Tritanopia (blue-blind)
#006578
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #314bb5;
/* rgb */ color: rgb(49, 75, 181);
/* oklch */ color: oklch(45.9% 0.170 268.3);
Tailwind
colors: {
  custom: {
    50: '#7b7dcc',
    500: '#314bb5',
    950: '#000000',
  },
}
SCSS
$custom: #314bb5;
$custom-light: #7b7dcc;
$custom-dark: #000000;
JSON
{
  "hex": "#314bb5",
  "rgb": {
    "r": 49,
    "g": 75,
    "b": 181
  },
  "hsl": {
    "h": 228.182,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.4589,
    "c": 0.17047,
    "h": 268.3
  },
  "luminance": 0.09021
}

Semantic roles & 50–950 ramp

primary
#314BB5
secondary
#C7B87B
accent
#C247E1
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #314BB5

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

Preview Lab → · Contrast checker → · Palette generator →

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