#3152B7#3152B7

#3152B7 is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.4% C 0.164 H 266.4°. Best body text is #FFFFFF at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#3152B7
RGBrgb(49, 82, 183)
HSLhsl(225, 58%, 45%)
HSVhsv(225, 73%, 72%)
CMYKcmyk(73.2%, 55.2%, 0%, 28.2%)
CIE-LABlab(38.03, 23.59, -56.99)
CIE-LCHlch(38.03, 61.67, 292.48°)
OKLaboklab(47.44% -0.0103 -0.1642)
OKLCHoklch(47.44% 0.164 266.4)
XYZxyz(12.8282, 10.1051, 46.0650)
Luminance0.1011 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3152B7 #B79631
analogous
#3195B7 #3152B7 #5331B7
triadic
#3152B7 #B73152 #52B731
tetradic
#3152B7 #B73195 #B79631 #31B753
square
#3152B7 #B73195 #B79631 #31B753
split-complementary
#3152B7 #B75331 #95B731
monochromatic
#172756 #243C87 #3152B7 #5473D1 #849ADE

Accessibility & contrast

On white

6.95
#3152B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#3152B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3152B7
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3152B7#FFFFFF#000000##FFFFFF
##3152B71.006.953.026.95
#FFFFFF6.951.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BB
Deuteranopia (green-blind)
#0054B5
Tritanopia (blue-blind)
#006B7C
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #3152b7;
/* rgb */ color: rgb(49, 82, 183);
/* oklch */ color: oklch(47.4% 0.164 266.4);
Tailwind
colors: {
  custom: {
    50: '#7b82cd',
    500: '#3152b7',
    950: '#000000',
  },
}
SCSS
$custom: #3152b7;
$custom-light: #7b82cd;
$custom-dark: #000000;
JSON
{
  "hex": "#3152b7",
  "rgb": {
    "r": 49,
    "g": 82,
    "b": 183
  },
  "hsl": {
    "h": 225.224,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.47444,
    "c": 0.16449,
    "h": 266.4
  },
  "luminance": 0.10106
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3152B7

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

Preview Lab → · Contrast checker → · Palette generator →

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