#3152BB#3152BB

#3152BB is a mid, vivid blue. Relative luminance 0.103; OKLCH L 47.8% C 0.170 H 266.6°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#3152BB
RGBrgb(49, 82, 187)
HSLhsl(226, 58%, 46%)
HSVhsv(226, 74%, 73%)
CMYKcmyk(73.8%, 56.1%, 0%, 26.7%)
CIE-LABlab(38.33, 25.08, -58.85)
CIE-LCHlch(38.33, 63.97, 293.08°)
OKLaboklab(47.76% -0.01 -0.1696)
OKLCHoklch(47.76% 0.17 266.6)
XYZxyz(13.2504, 10.2740, 48.2888)
Luminance0.1027 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3152BB #BB9A31
analogous
#3197BB #3152BB #5531BB
triadic
#3152BB #BB3152 #52BB31
tetradic
#3152BB #BB3197 #BB9A31 #31BB55
square
#3152BB #BB3197 #BB9A31 #31BB55
split-complementary
#3152BB #BB5531 #97BB31
monochromatic
#18275A #243D8B #3152BB #5674D3 #879CE0

Accessibility & contrast

On white

6.87
#3152BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#3152BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3152BB
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3152BB#FFFFFF#000000##FFFFFF
##3152BB1.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BF
Deuteranopia (green-blind)
#0054B9
Tritanopia (blue-blind)
#006C7E
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #3152bb;
/* rgb */ color: rgb(49, 82, 187);
/* oklch */ color: oklch(47.8% 0.170 266.6);
Tailwind
colors: {
  custom: {
    50: '#7c82d0',
    500: '#3152bb',
    950: '#000000',
  },
}
SCSS
$custom: #3152bb;
$custom-light: #7c82d0;
$custom-dark: #000000;
JSON
{
  "hex": "#3152bb",
  "rgb": {
    "r": 49,
    "g": 82,
    "b": 187
  },
  "hsl": {
    "h": 225.652,
    "s": 58.475,
    "l": 46.275
  },
  "oklch": {
    "l": 0.47764,
    "c": 0.16995,
    "h": 266.6
  },
  "luminance": 0.10275
}

Semantic roles & 50–950 ramp

primary
#3152BB
secondary
#C9B77F
accent
#BC46E2
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #3152BB

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

Preview Lab → · Contrast checker → · Palette generator →

#3152BB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva