#314BB1#314BB1

#314BB1 is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.6% C 0.165 H 268.2°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#314BB1
RGBrgb(49, 75, 177)
HSLhsl(228, 57%, 44%)
HSVhsv(228, 72%, 69%)
CMYKcmyk(72.3%, 57.6%, 0%, 30.6%)
CIE-LABlab(35.71, 25.95, -57.21)
CIE-LCHlch(35.71, 62.82, 294.40°)
OKLaboklab(45.56% -0.0051 -0.165)
OKLCHoklch(45.56% 0.165 268.2)
XYZxyz(11.7158, 8.8582, 42.6788)
Luminance0.0886 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314BB1 #B19731
analogous
#318BB1 #314BB1 #5731B1
triadic
#314BB1 #B1314B #4BB131
tetradic
#314BB1 #B1318B #B19731 #31B157
square
#314BB1 #B1318B #B19731 #31B157
split-complementary
#314BB1 #B15731 #8BB131
monochromatic
#162251 #243781 #314BB1 #516ACF #8093DC

Accessibility & contrast

On white

7.58
#314BB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#314BB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314BB1
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314BB1#FFFFFF#000000##FFFFFF
##314BB11.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB4
Deuteranopia (green-blind)
#004EAF
Tritanopia (blue-blind)
#006476
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #314bb1;
/* rgb */ color: rgb(49, 75, 177);
/* oklch */ color: oklch(45.6% 0.165 268.2);
Tailwind
colors: {
  custom: {
    50: '#7a7cc9',
    500: '#314bb1',
    950: '#000000',
  },
}
SCSS
$custom: #314bb1;
$custom-light: #7a7cc9;
$custom-dark: #000000;
JSON
{
  "hex": "#314bb1",
  "rgb": {
    "r": 49,
    "g": 75,
    "b": 177
  },
  "hsl": {
    "h": 227.813,
    "s": 56.637,
    "l": 44.314
  },
  "oklch": {
    "l": 0.45558,
    "c": 0.16503,
    "h": 268.2
  },
  "luminance": 0.08859
}

Semantic roles & 50–950 ramp

primary
#314BB1
secondary
#C5B679
accent
#C148E0
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #314BB1

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

Preview Lab → · Contrast checker → · Palette generator →

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