#3152BA#3152BA

#3152BA is a mid, vivid blue. Relative luminance 0.102; OKLCH L 47.7% C 0.169 H 266.6°. Best body text is #FFFFFF at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#3152BA
RGBrgb(49, 82, 186)
HSLhsl(226, 58%, 46%)
HSVhsv(226, 74%, 73%)
CMYKcmyk(73.7%, 55.9%, 0%, 27.1%)
CIE-LABlab(38.25, 24.71, -58.38)
CIE-LCHlch(38.25, 63.40, 292.94°)
OKLaboklab(47.68% -0.0101 -0.1683)
OKLCHoklch(47.68% 0.169 266.6)
XYZxyz(13.1437, 10.2313, 47.7270)
Luminance0.1023 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3152BA #BA9931
analogous
#3196BA #3152BA #5431BA
triadic
#3152BA #BA3152 #52BA31
tetradic
#3152BA #BA3196 #BA9931 #31BA54
square
#3152BA #BA3196 #BA9931 #31BA54
split-complementary
#3152BA #BA5431 #96BA31
monochromatic
#172759 #243D8A #3152BA #5674D2 #869CDF

Accessibility & contrast

On white

6.89
#3152BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#3152BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3152BA
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3152BA#FFFFFF#000000##FFFFFF
##3152BA1.006.893.056.89
#FFFFFF6.891.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.891.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3152ba;
/* rgb */ color: rgb(49, 82, 186);
/* oklch */ color: oklch(47.7% 0.169 266.6);
Tailwind
colors: {
  custom: {
    50: '#7c82cf',
    500: '#3152ba',
    950: '#000000',
  },
}
SCSS
$custom: #3152ba;
$custom-light: #7c82cf;
$custom-dark: #000000;
JSON
{
  "hex": "#3152ba",
  "rgb": {
    "r": 49,
    "g": 82,
    "b": 186
  },
  "hsl": {
    "h": 225.547,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.47684,
    "c": 0.16859,
    "h": 266.6
  },
  "luminance": 0.10233
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3152BA

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

Preview Lab → · Contrast checker → · Palette generator →

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