#314EA3#314EA3

#314EA3 is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.1% C 0.142 H 266.5°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#314EA3
RGBrgb(49, 78, 163)
HSLhsl(225, 54%, 42%)
HSVhsv(225, 70%, 64%)
CMYKcmyk(69.9%, 52.1%, 0%, 36.1%)
CIE-LABlab(35.49, 18.74, -49.23)
CIE-LCHlch(35.49, 52.68, 290.83°)
OKLaboklab(45.06% -0.0086 -0.1414)
OKLCHoklch(45.06% 0.142 266.5)
XYZxyz(10.5996, 8.7450, 35.7726)
Luminance0.0875 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314EA3 #A38631
analogous
#3187A3 #314EA3 #4D31A3
triadic
#314EA3 #A3314E #4EA331
tetradic
#314EA3 #A33187 #A38631 #31A34D
square
#314EA3 #A33187 #A38631 #31A34D
split-complementary
#314EA3 #A34D31 #87A331
monochromatic
#152145 #233774 #314EA3 #4969C8 #7890D6

Accessibility & contrast

On white

7.64
#314EA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#314EA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314EA3
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314EA3#FFFFFF#000000##FFFFFF
##314EA31.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1959A6
Deuteranopia (green-blind)
#004FA1
Tritanopia (blue-blind)
#006271
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #314ea3;
/* rgb */ color: rgb(49, 78, 163);
/* oklch */ color: oklch(45.1% 0.142 266.5);
Tailwind
colors: {
  custom: {
    50: '#777fbf',
    500: '#314ea3',
    950: '#000000',
  },
}
SCSS
$custom: #314ea3;
$custom-light: #777fbf;
$custom-dark: #000000;
JSON
{
  "hex": "#314ea3",
  "rgb": {
    "r": 49,
    "g": 78,
    "b": 163
  },
  "hsl": {
    "h": 224.737,
    "s": 53.774,
    "l": 41.569
  },
  "oklch": {
    "l": 0.45064,
    "c": 0.14168,
    "h": 266.5
  },
  "luminance": 0.08746
}

Semantic roles & 50–950 ramp

primary
#314EA3
secondary
#BFAB71
accent
#B84BDD
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #314EA3

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

Preview Lab → · Contrast checker → · Palette generator →

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