#3152BC#3152BC

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

Color values

HEX#3152BC
RGBrgb(49, 82, 188)
HSLhsl(226, 59%, 46%)
HSVhsv(226, 74%, 74%)
CMYKcmyk(73.9%, 56.4%, 0%, 26.3%)
CIE-LABlab(38.41, 25.45, -59.31)
CIE-LCHlch(38.41, 64.54, 293.23°)
OKLaboklab(47.85% -0.01 -0.171)
OKLCHoklch(47.85% 0.171 266.7)
XYZxyz(13.3578, 10.3170, 48.8546)
Luminance0.1032 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3152BC #BC9B31
analogous
#3198BC #3152BC #5531BC
triadic
#3152BC #BC3152 #52BC31
tetradic
#3152BC #BC3198 #BC9B31 #31BC55
square
#3152BC #BC3198 #BC9B31 #31BC55
split-complementary
#3152BC #BC5531 #98BC31
monochromatic
#18285B #243D8B #3152BC #5774D3 #889DE0

Accessibility & contrast

On white

6.85
#3152BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #3152BC
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3152BC#FFFFFF#000000##FFFFFF
##3152BC1.006.853.066.85
#FFFFFF6.851.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C0
Deuteranopia (green-blind)
#0054BA
Tritanopia (blue-blind)
#006C7F
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #3152bc;
/* rgb */ color: rgb(49, 82, 188);
/* oklch */ color: oklch(47.8% 0.171 266.7);
Tailwind
colors: {
  custom: {
    50: '#7c82d1',
    500: '#3152bc',
    950: '#000000',
  },
}
SCSS
$custom: #3152bc;
$custom-light: #7c82d1;
$custom-dark: #000000;
JSON
{
  "hex": "#3152bc",
  "rgb": {
    "r": 49,
    "g": 82,
    "b": 188
  },
  "hsl": {
    "h": 225.755,
    "s": 58.65,
    "l": 46.471
  },
  "oklch": {
    "l": 0.47845,
    "c": 0.1713,
    "h": 266.7
  },
  "luminance": 0.10318
}

Semantic roles & 50–950 ramp

primary
#3152BC
secondary
#CAB87F
accent
#BD46E2
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #3152BC

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

Preview Lab → · Contrast checker → · Palette generator →

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