#3162BA#3162BA

#3162BA is a mid, vivid blue. Relative luminance 0.129; OKLCH L 51.0% C 0.149 H 261.0°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#3162BA
RGBrgb(49, 98, 186)
HSLhsl(219, 58%, 46%)
HSVhsv(219, 74%, 73%)
CMYKcmyk(73.7%, 47.3%, 0%, 27.1%)
CIE-LABlab(42.66, 14.28, -51.26)
CIE-LCHlch(42.66, 53.22, 285.57°)
OKLaboklab(51.03% -0.0232 -0.1471)
OKLCHoklch(51.03% 0.149 261)
XYZxyz(14.4940, 12.9319, 48.1771)
Luminance0.1293 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3162BA #BA8931
analogous
#31A6BA #3162BA #4431BA
triadic
#3162BA #BA3162 #62BA31
tetradic
#3162BA #BA31A6 #BA8931 #31BA44
square
#3162BA #BA31A6 #BA8931 #31BA44
split-complementary
#3162BA #BA4431 #A6BA31
monochromatic
#172F59 #24488A #3162BA #5682D2 #86A6DF

Accessibility & contrast

On white

5.85
#3162BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#3162BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3162BA
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3162BA#FFFFFF#000000##FFFFFF
##3162BA1.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#336BBD
Deuteranopia (green-blind)
#0E5FB8
Tritanopia (blue-blind)
#007785
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #3162ba;
/* rgb */ color: rgb(49, 98, 186);
/* oklch */ color: oklch(51.0% 0.149 261.0);
Tailwind
colors: {
  custom: {
    50: '#7b8ecf',
    500: '#3162ba',
    950: '#000000',
  },
}
SCSS
$custom: #3162ba;
$custom-light: #7b8ecf;
$custom-dark: #000000;
JSON
{
  "hex": "#3162ba",
  "rgb": {
    "r": 49,
    "g": 98,
    "b": 186
  },
  "hsl": {
    "h": 218.54,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.51034,
    "c": 0.14888,
    "h": 261
  },
  "luminance": 0.12934
}

Semantic roles & 50–950 ramp

primary
#3162BA
secondary
#C9AE7E
accent
#AA46E2
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0C14
muted
#7C7D82

Preview Lab

Preview with #3162BA

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

Preview Lab → · Contrast checker → · Palette generator →

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