#3152BF#3152BF

#3152BF is a mid, vivid blue. Relative luminance 0.104; OKLCH L 48.1% C 0.175 H 266.8°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#3152BF
RGBrgb(49, 82, 191)
HSLhsl(226, 59%, 47%)
HSVhsv(226, 74%, 75%)
CMYKcmyk(74.3%, 57.1%, 0%, 25.1%)
CIE-LABlab(38.63, 26.57, -60.69)
CIE-LCHlch(38.63, 66.25, 293.64°)
OKLaboklab(48.09% -0.0098 -0.1751)
OKLCHoklch(48.09% 0.175 266.8)
XYZxyz(13.6846, 10.4477, 50.5755)
Luminance0.1045 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3152BF #BF9E31
analogous
#3199BF #3152BF #5731BF
triadic
#3152BF #BF3152 #52BF31
tetradic
#3152BF #BF3199 #BF9E31 #31BF57
square
#3152BF #BF3199 #BF9E31 #31BF57
split-complementary
#3152BF #BF5731 #99BF31
monochromatic
#18285E #253D8E #3152BF #5976D4 #8A9EE1

Accessibility & contrast

On white

6.80
#3152BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#3152BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3152BF
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3152BF#FFFFFF#000000##FFFFFF
##3152BF1.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C3
Deuteranopia (green-blind)
#0055BD
Tritanopia (blue-blind)
#006D80
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #3152bf;
/* rgb */ color: rgb(49, 82, 191);
/* oklch */ color: oklch(48.1% 0.175 266.8);
Tailwind
colors: {
  custom: {
    50: '#7d82d3',
    500: '#3152bf',
    950: '#000000',
  },
}
SCSS
$custom: #3152bf;
$custom-light: #7d82d3;
$custom-dark: #000000;
JSON
{
  "hex": "#3152bf",
  "rgb": {
    "r": 49,
    "g": 82,
    "b": 191
  },
  "hsl": {
    "h": 226.056,
    "s": 59.167,
    "l": 47.059
  },
  "oklch": {
    "l": 0.48088,
    "c": 0.17535,
    "h": 266.8
  },
  "luminance": 0.10449
}

Semantic roles & 50–950 ramp

primary
#3152BF
secondary
#CBBA81
accent
#BE45E2
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #3152BF

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

Preview Lab → · Contrast checker → · Palette generator →

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