#3152C2#3152C2

#3152C2 is a mid, vivid blue. Relative luminance 0.106; OKLCH L 48.3% C 0.179 H 266.9°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#3152C2
RGBrgb(49, 82, 194)
HSLhsl(226, 60%, 48%)
HSVhsv(226, 75%, 76%)
CMYKcmyk(74.7%, 57.7%, 0%, 23.9%)
CIE-LABlab(38.87, 27.68, -62.07)
CIE-LCHlch(38.87, 67.96, 294.04°)
OKLaboklab(48.33% -0.0097 -0.1791)
OKLCHoklch(48.33% 0.179 266.9)
XYZxyz(14.0181, 10.5811, 52.3320)
Luminance0.1058 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3152C2 #C2A131
analogous
#319AC2 #3152C2 #5931C2
triadic
#3152C2 #C23152 #52C231
tetradic
#3152C2 #C2319A #C2A131 #31C259
square
#3152C2 #C2319A #C2A131 #31C259
split-complementary
#3152C2 #C25931 #9AC231
monochromatic
#182960 #253D91 #3152C2 #5B77D6 #8C9FE2

Accessibility & contrast

On white

6.74
#3152C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#3152C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3152C2
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3152C2#FFFFFF#000000##FFFFFF
##3152C21.006.743.126.74
#FFFFFF6.741.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C6
Deuteranopia (green-blind)
#0055C0
Tritanopia (blue-blind)
#006E82
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #3152c2;
/* rgb */ color: rgb(49, 82, 194);
/* oklch */ color: oklch(48.3% 0.179 266.9);
Tailwind
colors: {
  custom: {
    50: '#7e82d5',
    500: '#3152c2',
    950: '#000000',
  },
}
SCSS
$custom: #3152c2;
$custom-light: #7e82d5;
$custom-dark: #000000;
JSON
{
  "hex": "#3152c2",
  "rgb": {
    "r": 49,
    "g": 82,
    "b": 194
  },
  "hsl": {
    "h": 226.345,
    "s": 59.671,
    "l": 47.647
  },
  "oklch": {
    "l": 0.48334,
    "c": 0.17937,
    "h": 266.9
  },
  "luminance": 0.10583
}

Semantic roles & 50–950 ramp

primary
#3152C2
secondary
#CCBB83
accent
#BF45E3
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #3152C2

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

Preview Lab → · Contrast checker → · Palette generator →

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