#3161AF#3161AF

#3161AF is a mid, vivid blue. Relative luminance 0.123; OKLCH L 50.1% C 0.135 H 259.7°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#3161AF
RGBrgb(49, 97, 175)
HSLhsl(217, 56%, 44%)
HSVhsv(217, 72%, 69%)
CMYKcmyk(72%, 44.6%, 0%, 31.4%)
CIE-LABlab(41.68, 10.80, -46.39)
CIE-LCHlch(41.68, 47.63, 283.10°)
OKLaboklab(50.06% -0.0242 -0.1327)
OKLCHoklch(50.06% 0.135 259.7)
XYZxyz(13.2764, 12.2961, 42.2228)
Luminance0.1230 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3161AF #AF7F31
analogous
#31A0AF #3161AF #4031AF
triadic
#3161AF #AF3161 #61AF31
tetradic
#3161AF #AF31A0 #AF7F31 #31AF40
square
#3161AF #AF31A0 #AF7F31 #31AF40
split-complementary
#3161AF #AF4031 #A0AF31
monochromatic
#162C4F #24467F #3161AF #4F80CE #7FA2DB

Accessibility & contrast

On white

6.07
#3161AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#3161AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3161AF
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3161AF#FFFFFF#000000##FFFFFF
##3161AF1.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A69B2
Deuteranopia (green-blind)
#235DAD
Tritanopia (blue-blind)
#00737F
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #3161af;
/* rgb */ color: rgb(49, 97, 175);
/* oklch */ color: oklch(50.1% 0.135 259.7);
Tailwind
colors: {
  custom: {
    50: '#798dc7',
    500: '#3161af',
    950: '#000000',
  },
}
SCSS
$custom: #3161af;
$custom-light: #798dc7;
$custom-dark: #000000;
JSON
{
  "hex": "#3161af",
  "rgb": {
    "r": 49,
    "g": 97,
    "b": 175
  },
  "hsl": {
    "h": 217.143,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.50059,
    "c": 0.13494,
    "h": 259.7
  },
  "luminance": 0.12298
}

Semantic roles & 50–950 ramp

primary
#3161AF
secondary
#C4A778
accent
#A648E0
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #3161AF

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

Preview Lab → · Contrast checker → · Palette generator →

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