#3152C1#3152C1

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

Color values

HEX#3152C1
RGBrgb(49, 82, 193)
HSLhsl(226, 60%, 47%)
HSVhsv(226, 75%, 76%)
CMYKcmyk(74.6%, 57.5%, 0%, 24.3%)
CIE-LABlab(38.79, 27.31, -61.61)
CIE-LCHlch(38.79, 67.39, 293.91°)
OKLaboklab(48.25% -0.0098 -0.1778)
OKLCHoklch(48.25% 0.178 266.9)
XYZxyz(13.9062, 10.5363, 51.7426)
Luminance0.1054 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3152C1 #C1A031
analogous
#319AC1 #3152C1 #5831C1
triadic
#3152C1 #C13152 #52C131
tetradic
#3152C1 #C1319A #C1A031 #31C158
square
#3152C1 #C1319A #C1A031 #31C158
split-complementary
#3152C1 #C15831 #9AC131
monochromatic
#18295F #253D90 #3152C1 #5A76D5 #8B9FE2

Accessibility & contrast

On white

6.76
#3152C1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#3152C1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3152C1
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3152C1#FFFFFF#000000##FFFFFF
##3152C11.006.763.116.76
#FFFFFF6.761.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C5
Deuteranopia (green-blind)
#0055BF
Tritanopia (blue-blind)
#006E81
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #3152c1;
/* rgb */ color: rgb(49, 82, 193);
/* oklch */ color: oklch(48.3% 0.178 266.9);
Tailwind
colors: {
  custom: {
    50: '#7e82d5',
    500: '#3152c1',
    950: '#000000',
  },
}
SCSS
$custom: #3152c1;
$custom-light: #7e82d5;
$custom-dark: #000000;
JSON
{
  "hex": "#3152c1",
  "rgb": {
    "r": 49,
    "g": 82,
    "b": 193
  },
  "hsl": {
    "h": 226.25,
    "s": 59.504,
    "l": 47.451
  },
  "oklch": {
    "l": 0.48252,
    "c": 0.17804,
    "h": 266.9
  },
  "luminance": 0.10538
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3152C1

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

Preview Lab → · Contrast checker → · Palette generator →

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