#3162BD#3162BD

#3162BD is a mid, vivid blue. Relative luminance 0.131; OKLCH L 51.2% C 0.153 H 261.5°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#3162BD
RGBrgb(49, 98, 189)
HSLhsl(219, 59%, 47%)
HSVhsv(219, 74%, 74%)
CMYKcmyk(74.1%, 48.1%, 0%, 25.9%)
CIE-LABlab(42.85, 15.41, -52.70)
CIE-LCHlch(42.85, 54.90, 286.30°)
OKLaboklab(51.25% -0.0227 -0.1513)
OKLCHoklch(51.25% 0.153 261.5)
XYZxyz(14.8163, 13.0608, 49.8744)
Luminance0.1306 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3162BD #BD8C31
analogous
#31A8BD #3162BD #4631BD
triadic
#3162BD #BD3162 #62BD31
tetradic
#3162BD #BD31A8 #BD8C31 #31BD46
square
#3162BD #BD31A8 #BD8C31 #31BD46
split-complementary
#3162BD #BD4631 #A8BD31
monochromatic
#18305C #24498C #3162BD #5883D4 #88A7E0

Accessibility & contrast

On white

5.81
#3162BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#3162BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3162BD
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3162BD#FFFFFF#000000##FFFFFF
##3162BD1.005.813.615.81
#FFFFFF5.811.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F6CC0
Deuteranopia (green-blind)
#015FBB
Tritanopia (blue-blind)
#007886
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #3162bd;
/* rgb */ color: rgb(49, 98, 189);
/* oklch */ color: oklch(51.2% 0.153 261.5);
Tailwind
colors: {
  custom: {
    50: '#7c8ed1',
    500: '#3162bd',
    950: '#000000',
  },
}
SCSS
$custom: #3162bd;
$custom-light: #7c8ed1;
$custom-dark: #000000;
JSON
{
  "hex": "#3162bd",
  "rgb": {
    "r": 49,
    "g": 98,
    "b": 189
  },
  "hsl": {
    "h": 219,
    "s": 58.824,
    "l": 46.667
  },
  "oklch": {
    "l": 0.51245,
    "c": 0.15298,
    "h": 261.5
  },
  "luminance": 0.13062
}

Semantic roles & 50–950 ramp

primary
#3162BD
secondary
#CAB080
accent
#AB46E2
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0C14
muted
#7C7D82

Preview Lab

Preview with #3162BD

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

Preview Lab → · Contrast checker → · Palette generator →

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