#3152B9#3152B9

#3152B9 is a mid, vivid blue. Relative luminance 0.102; OKLCH L 47.6% C 0.167 H 266.5°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#3152B9
RGBrgb(49, 82, 185)
HSLhsl(225, 58%, 46%)
HSVhsv(225, 74%, 73%)
CMYKcmyk(73.5%, 55.7%, 0%, 27.5%)
CIE-LABlab(38.18, 24.33, -57.92)
CIE-LCHlch(38.18, 62.82, 292.79°)
OKLaboklab(47.6% -0.0102 -0.1669)
OKLCHoklch(47.6% 0.167 266.5)
XYZxyz(13.0378, 10.1889, 47.1691)
Luminance0.1019 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3152B9 #B99831
analogous
#3196B9 #3152B9 #5431B9
triadic
#3152B9 #B93152 #52B931
tetradic
#3152B9 #B93196 #B99831 #31B954
square
#3152B9 #B93196 #B99831 #31B954
split-complementary
#3152B9 #B95431 #96B931
monochromatic
#172758 #243D89 #3152B9 #5573D2 #869BDF

Accessibility & contrast

On white

6.91
#3152B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#3152B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3152B9
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3152B9#FFFFFF#000000##FFFFFF
##3152B91.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BD
Deuteranopia (green-blind)
#0054B7
Tritanopia (blue-blind)
#006B7D
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #3152b9;
/* rgb */ color: rgb(49, 82, 185);
/* oklch */ color: oklch(47.6% 0.167 266.5);
Tailwind
colors: {
  custom: {
    50: '#7c82cf',
    500: '#3152b9',
    950: '#000000',
  },
}
SCSS
$custom: #3152b9;
$custom-light: #7c82cf;
$custom-dark: #000000;
JSON
{
  "hex": "#3152b9",
  "rgb": {
    "r": 49,
    "g": 82,
    "b": 185
  },
  "hsl": {
    "h": 225.441,
    "s": 58.12,
    "l": 45.882
  },
  "oklch": {
    "l": 0.47603,
    "c": 0.16723,
    "h": 266.5
  },
  "luminance": 0.1019
}

Semantic roles & 50–950 ramp

primary
#3152B9
secondary
#C8B67D
accent
#BC46E1
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #3152B9

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

Preview Lab → · Contrast checker → · Palette generator →

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