#3152B4#3152B4

#3152B4 is a mid, vivid blue. Relative luminance 0.100; OKLCH L 47.2% C 0.160 H 266.2°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#3152B4
RGBrgb(49, 82, 180)
HSLhsl(225, 57%, 45%)
HSVhsv(225, 73%, 71%)
CMYKcmyk(72.8%, 54.4%, 0%, 29.4%)
CIE-LABlab(37.81, 22.46, -55.58)
CIE-LCHlch(37.81, 59.95, 292.01°)
OKLaboklab(47.21% -0.0105 -0.16)
OKLCHoklch(47.21% 0.16 266.2)
XYZxyz(12.5193, 9.9815, 44.4380)
Luminance0.0998 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3152B4 #B49331
analogous
#3194B4 #3152B4 #5131B4
triadic
#3152B4 #B43152 #52B431
tetradic
#3152B4 #B43194 #B49331 #31B451
square
#3152B4 #B43194 #B49331 #31B451
split-complementary
#3152B4 #B45131 #94B431
monochromatic
#172654 #243C84 #3152B4 #5272D0 #8299DD

Accessibility & contrast

On white

7.01
#3152B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3152B4
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3152B4#FFFFFF#000000##FFFFFF
##3152B41.007.013.007.01
#FFFFFF7.011.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FB7
Deuteranopia (green-blind)
#0053B2
Tritanopia (blue-blind)
#006A7B
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #3152b4;
/* rgb */ color: rgb(49, 82, 180);
/* oklch */ color: oklch(47.2% 0.160 266.2);
Tailwind
colors: {
  custom: {
    50: '#7b82cb',
    500: '#3152b4',
    950: '#000000',
  },
}
SCSS
$custom: #3152b4;
$custom-light: #7b82cb;
$custom-dark: #000000;
JSON
{
  "hex": "#3152b4",
  "rgb": {
    "r": 49,
    "g": 82,
    "b": 180
  },
  "hsl": {
    "h": 224.885,
    "s": 57.205,
    "l": 44.902
  },
  "oklch": {
    "l": 0.47207,
    "c": 0.16037,
    "h": 266.2
  },
  "luminance": 0.09983
}

Semantic roles & 50–950 ramp

primary
#3152B4
secondary
#C6B37B
accent
#BA47E0
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #3152B4

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

Preview Lab → · Contrast checker → · Palette generator →

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