#314BA5#314BA5

#314BA5 is a dark, vivid blue. Relative luminance 0.084; OKLCH L 44.6% C 0.148 H 267.8°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#314BA5
RGBrgb(49, 75, 165)
HSLhsl(227, 54%, 42%)
HSVhsv(227, 70%, 65%)
CMYKcmyk(70.3%, 54.5%, 0%, 35.3%)
CIE-LABlab(34.80, 21.48, -51.54)
CIE-LCHlch(34.80, 55.83, 292.62°)
OKLaboklab(44.59% -0.0057 -0.1483)
OKLCHoklch(44.59% 0.148 267.8)
XYZxyz(10.5719, 8.4007, 36.6544)
Luminance0.0840 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314BA5 #A58B31
analogous
#3185A5 #314BA5 #5131A5
triadic
#314BA5 #A5314B #4BA531
tetradic
#314BA5 #A53185 #A58B31 #31A551
square
#314BA5 #A53185 #A58B31 #31A551
split-complementary
#314BA5 #A55131 #85A531
monochromatic
#152047 #233676 #314BA5 #4A66C9 #798ED7

Accessibility & contrast

On white

7.83
#314BA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#314BA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314BA5
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314BA5#FFFFFF#000000##FFFFFF
##314BA51.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0557A8
Deuteranopia (green-blind)
#004DA3
Tritanopia (blue-blind)
#006170
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #314ba5;
/* rgb */ color: rgb(49, 75, 165);
/* oklch */ color: oklch(44.6% 0.148 267.8);
Tailwind
colors: {
  custom: {
    50: '#787cc0',
    500: '#314ba5',
    950: '#000000',
  },
}
SCSS
$custom: #314ba5;
$custom-light: #787cc0;
$custom-dark: #000000;
JSON
{
  "hex": "#314ba5",
  "rgb": {
    "r": 49,
    "g": 75,
    "b": 165
  },
  "hsl": {
    "h": 226.552,
    "s": 54.206,
    "l": 41.961
  },
  "oklch": {
    "l": 0.44592,
    "c": 0.14837,
    "h": 267.8
  },
  "luminance": 0.08402
}

Semantic roles & 50–950 ramp

primary
#314BA5
secondary
#C0AE72
accent
#BD4ADE
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #314BA5

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

Preview Lab → · Contrast checker → · Palette generator →

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