#314FAB#314FAB

#314FAB is a mid, vivid blue. Relative luminance 0.092; OKLCH L 45.9% C 0.152 H 266.7°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#314FAB
RGBrgb(49, 79, 171)
HSLhsl(225, 55%, 43%)
HSVhsv(225, 71%, 67%)
CMYKcmyk(71.3%, 53.8%, 0%, 32.9%)
CIE-LABlab(36.34, 21.07, -52.64)
CIE-LCHlch(36.34, 56.70, 291.82°)
OKLaboklab(45.89% -0.0087 -0.1514)
OKLCHoklch(45.89% 0.152 266.7)
XYZxyz(11.4107, 9.1840, 39.6915)
Luminance0.0919 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314FAB #AB8D31
analogous
#318CAB #314FAB #5031AB
triadic
#314FAB #AB314F #4FAB31
tetradic
#314FAB #AB318C #AB8D31 #31AB50
square
#314FAB #AB318C #AB8D31 #31AB50
split-complementary
#314FAB #AB5031 #8CAB31
monochromatic
#16234C #23397B #314FAB #4D6CCC #7D94DA

Accessibility & contrast

On white

7.40
#314FAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#314FAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314FAB
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314FAB#FFFFFF#000000##FFFFFF
##314FAB1.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C5BAE
Deuteranopia (green-blind)
#0050A9
Tritanopia (blue-blind)
#006575
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #314fab;
/* rgb */ color: rgb(49, 79, 171);
/* oklch */ color: oklch(45.9% 0.152 266.7);
Tailwind
colors: {
  custom: {
    50: '#797fc5',
    500: '#314fab',
    950: '#000000',
  },
}
SCSS
$custom: #314fab;
$custom-light: #797fc5;
$custom-dark: #000000;
JSON
{
  "hex": "#314fab",
  "rgb": {
    "r": 49,
    "g": 79,
    "b": 171
  },
  "hsl": {
    "h": 225.246,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.45887,
    "c": 0.15168,
    "h": 266.7
  },
  "luminance": 0.09185
}

Semantic roles & 50–950 ramp

primary
#314FAB
secondary
#C2AF75
accent
#BA49DF
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #314FAB

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

Preview Lab → · Contrast checker → · Palette generator →

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