#3161BA#3161BA

#3161BA is a mid, vivid blue. Relative luminance 0.127; OKLCH L 50.8% C 0.150 H 261.4°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#3161BA
RGBrgb(49, 97, 186)
HSLhsl(219, 58%, 46%)
HSVhsv(219, 74%, 73%)
CMYKcmyk(73.7%, 47.8%, 0%, 27.1%)
CIE-LABlab(42.38, 14.93, -51.72)
CIE-LCHlch(42.38, 53.83, 286.10°)
OKLaboklab(50.82% -0.0223 -0.1484)
OKLCHoklch(50.82% 0.15 261.4)
XYZxyz(14.4011, 12.7460, 48.1461)
Luminance0.1275 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3161BA #BA8A31
analogous
#31A5BA #3161BA #4531BA
triadic
#3161BA #BA3161 #61BA31
tetradic
#3161BA #BA31A5 #BA8A31 #31BA45
square
#3161BA #BA31A5 #BA8A31 #31BA45
split-complementary
#3161BA #BA4531 #A5BA31
monochromatic
#172E59 #24488A #3161BA #5681D2 #86A5DF

Accessibility & contrast

On white

5.92
#3161BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#3161BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3161BA
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3161BA#FFFFFF#000000##FFFFFF
##3161BA1.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#306BBD
Deuteranopia (green-blind)
#075EB8
Tritanopia (blue-blind)
#007684
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #3161ba;
/* rgb */ color: rgb(49, 97, 186);
/* oklch */ color: oklch(50.8% 0.150 261.4);
Tailwind
colors: {
  custom: {
    50: '#7b8dcf',
    500: '#3161ba',
    950: '#000000',
  },
}
SCSS
$custom: #3161ba;
$custom-light: #7b8dcf;
$custom-dark: #000000;
JSON
{
  "hex": "#3161ba",
  "rgb": {
    "r": 49,
    "g": 97,
    "b": 186
  },
  "hsl": {
    "h": 218.978,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.50817,
    "c": 0.15009,
    "h": 261.4
  },
  "luminance": 0.12748
}

Semantic roles & 50–950 ramp

primary
#3161BA
secondary
#C9AF7E
accent
#AB46E2
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0C14
muted
#7C7D82

Preview Lab

Preview with #3161BA

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

Preview Lab → · Contrast checker → · Palette generator →

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