#3152C7#3152C7

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

Color values

HEX#3152C7
RGBrgb(49, 82, 199)
HSLhsl(227, 60%, 49%)
HSVhsv(227, 75%, 78%)
CMYKcmyk(75.4%, 58.8%, 0%, 22%)
CIE-LABlab(39.26, 29.53, -64.34)
CIE-LCHlch(39.26, 70.79, 294.66°)
OKLaboklab(48.75% -0.0096 -0.1858)
OKLCHoklch(48.75% 0.186 267)
XYZxyz(14.5891, 10.8095, 55.3393)
Luminance0.1081 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3152C7 #C7A631
analogous
#319DC7 #3152C7 #5B31C7
triadic
#3152C7 #C73152 #52C731
tetradic
#3152C7 #C7319D #C7A631 #31C75B
square
#3152C7 #C7319D #C7A631 #31C75B
split-complementary
#3152C7 #C75B31 #9DC731
monochromatic
#192A65 #253E96 #3152C7 #5E79D7 #8FA2E3

Accessibility & contrast

On white

6.64
#3152C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#3152C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3152C7
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3152C7#FFFFFF#000000##FFFFFF
##3152C71.006.643.166.64
#FFFFFF6.641.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CB
Deuteranopia (green-blind)
#0056C5
Tritanopia (blue-blind)
#006F84
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #3152c7;
/* rgb */ color: rgb(49, 82, 199);
/* oklch */ color: oklch(48.8% 0.186 267.0);
Tailwind
colors: {
  custom: {
    50: '#7f82d9',
    500: '#3152c7',
    950: '#000000',
  },
}
SCSS
$custom: #3152c7;
$custom-light: #7f82d9;
$custom-dark: #000000;
JSON
{
  "hex": "#3152c7",
  "rgb": {
    "r": 49,
    "g": 82,
    "b": 199
  },
  "hsl": {
    "h": 226.8,
    "s": 60.484,
    "l": 48.627
  },
  "oklch": {
    "l": 0.4875,
    "c": 0.18603,
    "h": 267
  },
  "luminance": 0.10811
}

Semantic roles & 50–950 ramp

primary
#3152C7
secondary
#CEBE86
accent
#C144E4
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0C0A15
muted
#7D7C83

Preview Lab

Preview with #3152C7

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

Preview Lab → · Contrast checker → · Palette generator →

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