#314C8B#314C8B

#314C8B is a dark, moderate blue. Relative luminance 0.077; OKLCH L 42.9% C 0.109 H 264.7°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#314C8B
RGBrgb(49, 76, 139)
HSLhsl(222, 48%, 37%)
HSVhsv(222, 65%, 55%)
CMYKcmyk(64.7%, 45.3%, 0%, 45.5%)
CIE-LABlab(33.32, 11.10, -38.18)
CIE-LCHlch(33.32, 39.76, 286.21°)
OKLaboklab(42.9% -0.01 -0.1089)
OKLCHoklch(42.9% 0.109 264.7)
XYZxyz(8.5097, 7.6852, 25.4560)
Luminance0.0769 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314C8B #8B7031
analogous
#31798B #314C8B #43318B
triadic
#314C8B #8B314C #4C8B31
tetradic
#314C8B #8B3179 #8B7031 #318B43
square
#314C8B #8B3179 #8B7031 #318B43
split-complementary
#314C8B #8B4331 #798B31
monochromatic
#111B31 #21335E #314C8B #4165B8 #6B88CB

Accessibility & contrast

On white

8.28
#314C8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#314C8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314C8B
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314C8B#FFFFFF#000000##FFFFFF
##314C8B1.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E538D
Deuteranopia (green-blind)
#204B8A
Tritanopia (blue-blind)
#005A64
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #314c8b;
/* rgb */ color: rgb(49, 76, 139);
/* oklch */ color: oklch(42.9% 0.109 264.7);
Tailwind
colors: {
  custom: {
    50: '#727dad',
    500: '#314c8b',
    950: '#000000',
  },
}
SCSS
$custom: #314c8b;
$custom-light: #727dad;
$custom-dark: #000000;
JSON
{
  "hex": "#314c8b",
  "rgb": {
    "r": 49,
    "g": 76,
    "b": 139
  },
  "hsl": {
    "h": 222,
    "s": 47.872,
    "l": 36.863
  },
  "oklch": {
    "l": 0.42895,
    "c": 0.1094,
    "h": 264.7
  },
  "luminance": 0.07686
}

Semantic roles & 50–950 ramp

primary
#314C8B
secondary
#B29B65
accent
#AF50D7
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#090910
muted
#7B7B7F

Preview Lab

Preview with #314C8B

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

Preview Lab → · Contrast checker → · Palette generator →

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