#314BAB#314BAB

#314BAB is a mid, vivid blue. Relative luminance 0.086; OKLCH L 45.1% C 0.157 H 268.0°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#314BAB
RGBrgb(49, 75, 171)
HSLhsl(227, 55%, 43%)
HSVhsv(227, 71%, 67%)
CMYKcmyk(71.3%, 56.1%, 0%, 32.9%)
CIE-LABlab(35.25, 23.72, -54.40)
CIE-LCHlch(35.25, 59.34, 293.56°)
OKLaboklab(45.07% -0.0054 -0.1567)
OKLCHoklch(45.07% 0.157 268)
XYZxyz(11.1308, 8.6243, 39.5982)
Luminance0.0862 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314BAB #AB9131
analogous
#3188AB #314BAB #5431AB
triadic
#314BAB #AB314B #4BAB31
tetradic
#314BAB #AB3188 #AB9131 #31AB54
square
#314BAB #AB3188 #AB9131 #31AB54
split-complementary
#314BAB #AB5431 #88AB31
monochromatic
#16214C #23367B #314BAB #4D68CC #7D91DA

Accessibility & contrast

On white

7.71
#314BAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#314BAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314BAB
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314BAB#FFFFFF#000000##FFFFFF
##314BAB1.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059AE
Deuteranopia (green-blind)
#004EA9
Tritanopia (blue-blind)
#006273
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #314bab;
/* rgb */ color: rgb(49, 75, 171);
/* oklch */ color: oklch(45.1% 0.157 268.0);
Tailwind
colors: {
  custom: {
    50: '#797cc5',
    500: '#314bab',
    950: '#000000',
  },
}
SCSS
$custom: #314bab;
$custom-light: #797cc5;
$custom-dark: #000000;
JSON
{
  "hex": "#314bab",
  "rgb": {
    "r": 49,
    "g": 75,
    "b": 171
  },
  "hsl": {
    "h": 227.213,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.45069,
    "c": 0.15675,
    "h": 268
  },
  "luminance": 0.08625
}

Semantic roles & 50–950 ramp

primary
#314BAB
secondary
#C2B275
accent
#BF49DF
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #314BAB

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

Preview Lab → · Contrast checker → · Palette generator →

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