#3152B5#3152B5

#3152B5 is a mid, vivid blue. Relative luminance 0.100; OKLCH L 47.3% C 0.162 H 266.3°. Best body text is #FFFFFF at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#3152B5
RGBrgb(49, 82, 181)
HSLhsl(225, 57%, 45%)
HSVhsv(225, 73%, 71%)
CMYKcmyk(72.9%, 54.7%, 0%, 29%)
CIE-LABlab(37.88, 22.84, -56.05)
CIE-LCHlch(37.88, 60.52, 292.17°)
OKLaboklab(47.29% -0.0104 -0.1614)
OKLCHoklch(47.29% 0.162 266.3)
XYZxyz(12.6215, 10.0224, 44.9764)
Luminance0.1002 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3152B5 #B59431
analogous
#3194B5 #3152B5 #5231B5
triadic
#3152B5 #B53152 #52B531
tetradic
#3152B5 #B53194 #B59431 #31B552
square
#3152B5 #B53194 #B59431 #31B552
split-complementary
#3152B5 #B55231 #94B531
monochromatic
#172655 #243C85 #3152B5 #5372D0 #839ADD

Accessibility & contrast

On white

6.99
#3152B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.00
#3152B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3152B5
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3152B5#FFFFFF#000000##FFFFFF
##3152B51.006.993.006.99
#FFFFFF6.991.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060B8
Deuteranopia (green-blind)
#0053B3
Tritanopia (blue-blind)
#006A7B
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #3152b5;
/* rgb */ color: rgb(49, 82, 181);
/* oklch */ color: oklch(47.3% 0.162 266.3);
Tailwind
colors: {
  custom: {
    50: '#7b82cc',
    500: '#3152b5',
    950: '#000000',
  },
}
SCSS
$custom: #3152b5;
$custom-light: #7b82cc;
$custom-dark: #000000;
JSON
{
  "hex": "#3152b5",
  "rgb": {
    "r": 49,
    "g": 82,
    "b": 181
  },
  "hsl": {
    "h": 225,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.47286,
    "c": 0.16176,
    "h": 266.3
  },
  "luminance": 0.10024
}

Semantic roles & 50–950 ramp

primary
#3152B5
secondary
#C7B47B
accent
#BA47E1
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #3152B5

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

Preview Lab → · Contrast checker → · Palette generator →

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