#314FB9#314FB9

#314FB9 is a mid, vivid blue. Relative luminance 0.097; OKLCH L 47.0% C 0.171 H 267.4°. Best body text is #FFFFFF at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#314FB9
RGBrgb(49, 79, 185)
HSLhsl(227, 58%, 46%)
HSVhsv(227, 74%, 73%)
CMYKcmyk(73.5%, 57.3%, 0%, 27.5%)
CIE-LABlab(37.38, 26.30, -59.21)
CIE-LCHlch(37.38, 64.79, 293.95°)
OKLaboklab(47.01% -0.0079 -0.1708)
OKLCHoklch(47.01% 0.171 267.4)
XYZxyz(12.8165, 9.7464, 47.0953)
Luminance0.0975 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314FB9 #B99B31
analogous
#3193B9 #314FB9 #5731B9
triadic
#314FB9 #B9314F #4FB931
tetradic
#314FB9 #B93193 #B99B31 #31B957
square
#314FB9 #B93193 #B99B31 #31B957
split-complementary
#314FB9 #B95731 #93B931
monochromatic
#172658 #243A89 #314FB9 #5571D2 #8699DF

Accessibility & contrast

On white

7.12
#314FB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#314FB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314FB9
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314FB9#FFFFFF#000000##FFFFFF
##314FB91.007.122.957.12
#FFFFFF7.121.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBD
Deuteranopia (green-blind)
#0052B7
Tritanopia (blue-blind)
#00697C
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #314fb9;
/* rgb */ color: rgb(49, 79, 185);
/* oklch */ color: oklch(47.0% 0.171 267.4);
Tailwind
colors: {
  custom: {
    50: '#7c7fcf',
    500: '#314fb9',
    950: '#000000',
  },
}
SCSS
$custom: #314fb9;
$custom-light: #7c7fcf;
$custom-dark: #000000;
JSON
{
  "hex": "#314fb9",
  "rgb": {
    "r": 49,
    "g": 79,
    "b": 185
  },
  "hsl": {
    "h": 226.765,
    "s": 58.12,
    "l": 45.882
  },
  "oklch": {
    "l": 0.47006,
    "c": 0.17095,
    "h": 267.4
  },
  "luminance": 0.09748
}

Semantic roles & 50–950 ramp

primary
#314FB9
secondary
#C8B87D
accent
#BF46E1
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #314FB9

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

Preview Lab → · Contrast checker → · Palette generator →

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