#3161AC#3161AC

#3161AC is a mid, vivid blue. Relative luminance 0.122; OKLCH L 49.9% C 0.131 H 259.1°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#3161AC
RGBrgb(49, 97, 172)
HSLhsl(217, 56%, 43%)
HSVhsv(217, 72%, 67%)
CMYKcmyk(71.5%, 43.6%, 0%, 32.5%)
CIE-LABlab(41.50, 9.67, -44.92)
CIE-LCHlch(41.50, 45.95, 282.15°)
OKLaboklab(49.86% -0.0248 -0.1284)
OKLCHoklch(49.86% 0.131 259.1)
XYZxyz(12.9850, 12.1795, 40.6883)
Luminance0.1218 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3161AC #AC7C31
analogous
#319EAC #3161AC #3E31AC
triadic
#3161AC #AC3161 #61AC31
tetradic
#3161AC #AC319E #AC7C31 #31AC3E
square
#3161AC #AC319E #AC7C31 #31AC3E
split-complementary
#3161AC #AC3E31 #9EAC31
monochromatic
#162B4D #23467C #3161AC #4E7FCC #7DA2DA

Accessibility & contrast

On white

6.11
#3161AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#3161AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3161AC
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3161AC#FFFFFF#000000##FFFFFF
##3161AC1.006.113.446.11
#FFFFFF6.111.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D68AF
Deuteranopia (green-blind)
#275DAA
Tritanopia (blue-blind)
#00727E
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #3161ac;
/* rgb */ color: rgb(49, 97, 172);
/* oklch */ color: oklch(49.9% 0.131 259.1);
Tailwind
colors: {
  custom: {
    50: '#788dc5',
    500: '#3161ac',
    950: '#000000',
  },
}
SCSS
$custom: #3161ac;
$custom-light: #788dc5;
$custom-dark: #000000;
JSON
{
  "hex": "#3161ac",
  "rgb": {
    "r": 49,
    "g": 97,
    "b": 172
  },
  "hsl": {
    "h": 216.585,
    "s": 55.656,
    "l": 43.333
  },
  "oklch": {
    "l": 0.49858,
    "c": 0.13079,
    "h": 259.1
  },
  "luminance": 0.12181
}

Semantic roles & 50–950 ramp

primary
#3161AC
secondary
#C3A576
accent
#A449DF
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #3161AC

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

Preview Lab → · Contrast checker → · Palette generator →

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