#314A97#314A97

#314A97 is a dark, vivid blue. Relative luminance 0.078; OKLCH L 43.3% C 0.130 H 267.3°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#314A97
RGBrgb(49, 74, 151)
HSLhsl(225, 51%, 39%)
HSVhsv(225, 68%, 59%)
CMYKcmyk(67.5%, 51%, 0%, 40.8%)
CIE-LABlab(33.53, 16.91, -45.16)
CIE-LCHlch(33.53, 48.22, 290.53°)
OKLaboklab(43.31% -0.0061 -0.1295)
OKLCHoklch(43.31% 0.13 267.3)
XYZxyz(9.2994, 7.7840, 30.2845)
Luminance0.0779 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314A97 #977E31
analogous
#317D97 #314A97 #4B3197
triadic
#314A97 #97314A #4A9731
tetradic
#314A97 #97317D #977E31 #31974B
square
#314A97 #97317D #977E31 #31974B
split-complementary
#314A97 #974B31 #7D9731
monochromatic
#131D3B #223369 #314A97 #4362C2 #7189D1

Accessibility & contrast

On white

8.21
#314A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#314A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314A97
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314A97#FFFFFF#000000##FFFFFF
##314A971.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F549A
Deuteranopia (green-blind)
#004A95
Tritanopia (blue-blind)
#005C69
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #314a97;
/* rgb */ color: rgb(49, 74, 151);
/* oklch */ color: oklch(43.3% 0.130 267.3);
Tailwind
colors: {
  custom: {
    50: '#757cb6',
    500: '#314a97',
    950: '#000000',
  },
}
SCSS
$custom: #314a97;
$custom-light: #757cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#314a97",
  "rgb": {
    "r": 49,
    "g": 74,
    "b": 151
  },
  "hsl": {
    "h": 225.294,
    "s": 51,
    "l": 39.216
  },
  "oklch": {
    "l": 0.43309,
    "c": 0.12965,
    "h": 267.3
  },
  "luminance": 0.07785
}

Semantic roles & 50–950 ramp

primary
#314A97
secondary
#B9A66B
accent
#B84DDA
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #314A97

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

Preview Lab → · Contrast checker → · Palette generator →

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