#3152B8#3152B8

#3152B8 is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.5% C 0.166 H 266.5°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#3152B8
RGBrgb(49, 82, 184)
HSLhsl(225, 58%, 46%)
HSVhsv(225, 73%, 72%)
CMYKcmyk(73.4%, 55.4%, 0%, 27.8%)
CIE-LABlab(38.10, 23.96, -57.45)
CIE-LCHlch(38.10, 62.25, 292.64°)
OKLaboklab(47.52% -0.0102 -0.1655)
OKLCHoklch(47.52% 0.166 266.5)
XYZxyz(12.9326, 10.1469, 46.6151)
Luminance0.1015 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3152B8 #B89731
analogous
#3195B8 #3152B8 #5331B8
triadic
#3152B8 #B83152 #52B831
tetradic
#3152B8 #B83195 #B89731 #31B853
square
#3152B8 #B83195 #B89731 #31B853
split-complementary
#3152B8 #B85331 #95B831
monochromatic
#172757 #243C88 #3152B8 #5573D2 #859BDE

Accessibility & contrast

On white

6.93
#3152B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#3152B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3152B8
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3152B8#FFFFFF#000000##FFFFFF
##3152B81.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3152b8;
/* rgb */ color: rgb(49, 82, 184);
/* oklch */ color: oklch(47.5% 0.166 266.5);
Tailwind
colors: {
  custom: {
    50: '#7c82ce',
    500: '#3152b8',
    950: '#000000',
  },
}
SCSS
$custom: #3152b8;
$custom-light: #7c82ce;
$custom-dark: #000000;
JSON
{
  "hex": "#3152b8",
  "rgb": {
    "r": 49,
    "g": 82,
    "b": 184
  },
  "hsl": {
    "h": 225.333,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.47524,
    "c": 0.16587,
    "h": 266.5
  },
  "luminance": 0.10148
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3152B8

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

Preview Lab → · Contrast checker → · Palette generator →

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