#3152C6#3152C6

#3152C6 is a mid, vivid blue. Relative luminance 0.108; OKLCH L 48.7% C 0.185 H 267.0°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#3152C6
RGBrgb(49, 82, 198)
HSLhsl(227, 60%, 48%)
HSVhsv(227, 75%, 78%)
CMYKcmyk(75.3%, 58.6%, 0%, 22.4%)
CIE-LABlab(39.18, 29.16, -63.88)
CIE-LCHlch(39.18, 70.23, 294.54°)
OKLaboklab(48.67% -0.0096 -0.1844)
OKLCHoklch(48.67% 0.185 267)
XYZxyz(14.4734, 10.7632, 54.7298)
Luminance0.1076 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3152C6 #C6A531
analogous
#319CC6 #3152C6 #5A31C6
triadic
#3152C6 #C63152 #52C631
tetradic
#3152C6 #C6319C #C6A531 #31C65A
square
#3152C6 #C6319C #C6A531 #31C65A
split-complementary
#3152C6 #C65A31 #9CC631
monochromatic
#192964 #253E95 #3152C6 #5D78D7 #8EA1E3

Accessibility & contrast

On white

6.66
#3152C6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#3152C6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3152C6
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3152C6#FFFFFF#000000##FFFFFF
##3152C61.006.663.156.66
#FFFFFF6.661.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063CA
Deuteranopia (green-blind)
#0056C4
Tritanopia (blue-blind)
#006F84
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #3152c6;
/* rgb */ color: rgb(49, 82, 198);
/* oklch */ color: oklch(48.7% 0.185 267.0);
Tailwind
colors: {
  custom: {
    50: '#7f82d8',
    500: '#3152c6',
    950: '#000000',
  },
}
SCSS
$custom: #3152c6;
$custom-light: #7f82d8;
$custom-dark: #000000;
JSON
{
  "hex": "#3152c6",
  "rgb": {
    "r": 49,
    "g": 82,
    "b": 198
  },
  "hsl": {
    "h": 226.711,
    "s": 60.324,
    "l": 48.431
  },
  "oklch": {
    "l": 0.48666,
    "c": 0.1847,
    "h": 267
  },
  "luminance": 0.10765
}

Semantic roles & 50–950 ramp

primary
#3152C6
secondary
#CEBE85
accent
#C044E3
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0A15
muted
#7D7C83

Preview Lab

Preview with #3152C6

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

Preview Lab → · Contrast checker → · Palette generator →

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