#314A8B#314A8B

#314A8B is a dark, moderate blue. Relative luminance 0.074; OKLCH L 42.4% C 0.112 H 266.0°. Best body text is #FFFFFF at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#314A8B
RGBrgb(49, 74, 139)
HSLhsl(223, 48%, 37%)
HSVhsv(223, 65%, 55%)
CMYKcmyk(64.7%, 46.8%, 0%, 45.5%)
CIE-LABlab(32.73, 12.44, -39.12)
CIE-LCHlch(32.73, 41.05, 287.64°)
OKLaboklab(42.44% -0.0079 -0.1117)
OKLCHoklch(42.44% 0.112 266)
XYZxyz(8.3740, 7.4139, 25.4108)
Luminance0.0741 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314A8B #8B7231
analogous
#31778B #314A8B #45318B
triadic
#314A8B #8B314A #4A8B31
tetradic
#314A8B #8B3177 #8B7231 #318B45
square
#314A8B #8B3177 #8B7231 #318B45
split-complementary
#314A8B #8B4531 #778B31
monochromatic
#111A31 #21325E #314A8B #4162B8 #6B86CB

Accessibility & contrast

On white

8.46
#314A8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#314A8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314A8B
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314A8B#FFFFFF#000000##FFFFFF
##314A8B1.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B518D
Deuteranopia (green-blind)
#1C498A
Tritanopia (blue-blind)
#005963
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #314a8b;
/* rgb */ color: rgb(49, 74, 139);
/* oklch */ color: oklch(42.4% 0.112 266.0);
Tailwind
colors: {
  custom: {
    50: '#737cad',
    500: '#314a8b',
    950: '#000000',
  },
}
SCSS
$custom: #314a8b;
$custom-light: #737cad;
$custom-dark: #000000;
JSON
{
  "hex": "#314a8b",
  "rgb": {
    "r": 49,
    "g": 74,
    "b": 139
  },
  "hsl": {
    "h": 223.333,
    "s": 47.872,
    "l": 36.863
  },
  "oklch": {
    "l": 0.42444,
    "c": 0.11201,
    "h": 266
  },
  "luminance": 0.07415
}

Semantic roles & 50–950 ramp

primary
#314A8B
secondary
#B29D65
accent
#B250D7
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#090910
muted
#7B7B7F

Preview Lab

Preview with #314A8B

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

Preview Lab → · Contrast checker → · Palette generator →

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