#3161AE#3161AE

#3161AE is a mid, vivid blue. Relative luminance 0.123; OKLCH L 50.0% C 0.134 H 259.5°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#3161AE
RGBrgb(49, 97, 174)
HSLhsl(217, 56%, 44%)
HSVhsv(217, 72%, 68%)
CMYKcmyk(71.8%, 44.3%, 0%, 31.8%)
CIE-LABlab(41.62, 10.42, -45.90)
CIE-LCHlch(41.62, 47.07, 282.79°)
OKLaboklab(49.99% -0.0244 -0.1313)
OKLCHoklch(49.99% 0.134 259.5)
XYZxyz(13.1785, 12.2569, 41.7075)
Luminance0.1226 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3161AE #AE7E31
analogous
#319FAE #3161AE #3F31AE
triadic
#3161AE #AE3161 #61AE31
tetradic
#3161AE #AE319F #AE7E31 #31AE3F
square
#3161AE #AE319F #AE7E31 #31AE3F
split-complementary
#3161AE #AE3F31 #9FAE31
monochromatic
#162C4E #24467E #3161AE #4F7FCD #7FA2DB

Accessibility & contrast

On white

6.08
#3161AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#3161AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3161AE
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3161AE#FFFFFF#000000##FFFFFF
##3161AE1.006.083.456.08
#FFFFFF6.081.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B68B1
Deuteranopia (green-blind)
#245DAC
Tritanopia (blue-blind)
#00737F
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #3161ae;
/* rgb */ color: rgb(49, 97, 174);
/* oklch */ color: oklch(50.0% 0.134 259.5);
Tailwind
colors: {
  custom: {
    50: '#798dc7',
    500: '#3161ae',
    950: '#000000',
  },
}
SCSS
$custom: #3161ae;
$custom-light: #798dc7;
$custom-dark: #000000;
JSON
{
  "hex": "#3161ae",
  "rgb": {
    "r": 49,
    "g": 97,
    "b": 174
  },
  "hsl": {
    "h": 216.96,
    "s": 56.054,
    "l": 43.725
  },
  "oklch": {
    "l": 0.49991,
    "c": 0.13356,
    "h": 259.5
  },
  "luminance": 0.12258
}

Semantic roles & 50–950 ramp

primary
#3161AE
secondary
#C4A677
accent
#A548DF
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #3161AE

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

Preview Lab → · Contrast checker → · Palette generator →

#3161AE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva