#3152A4#3152A4

#3152A4 is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.0% C 0.138 H 265.0°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#3152A4
RGBrgb(49, 82, 164)
HSLhsl(223, 54%, 42%)
HSVhsv(223, 70%, 64%)
CMYKcmyk(70.1%, 50%, 0%, 35.7%)
CIE-LABlab(36.68, 16.46, -47.91)
CIE-LCHlch(36.68, 50.65, 288.96°)
OKLaboklab(45.99% -0.0121 -0.1375)
OKLCHoklch(45.99% 0.138 265)
XYZxyz(10.9824, 9.3668, 36.3439)
Luminance0.0937 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3152A4 #A48331
analogous
#318CA4 #3152A4 #4A31A4
triadic
#3152A4 #A43152 #52A431
tetradic
#3152A4 #A4318C #A48331 #31A44A
square
#3152A4 #A4318C #A48331 #31A44A
split-complementary
#3152A4 #A44A31 #8CA431
monochromatic
#152346 #233A75 #3152A4 #496EC9 #7994D7

Accessibility & contrast

On white

7.31
#3152A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#3152A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3152A4
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3152A4#FFFFFF#000000##FFFFFF
##3152A41.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#245CA7
Deuteranopia (green-blind)
#0051A2
Tritanopia (blue-blind)
#006573
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #3152a4;
/* rgb */ color: rgb(49, 82, 164);
/* oklch */ color: oklch(46.0% 0.138 265.0);
Tailwind
colors: {
  custom: {
    50: '#7782bf',
    500: '#3152a4',
    950: '#000000',
  },
}
SCSS
$custom: #3152a4;
$custom-light: #7782bf;
$custom-dark: #000000;
JSON
{
  "hex": "#3152a4",
  "rgb": {
    "r": 49,
    "g": 82,
    "b": 164
  },
  "hsl": {
    "h": 222.783,
    "s": 53.991,
    "l": 41.765
  },
  "oklch": {
    "l": 0.45993,
    "c": 0.13799,
    "h": 265
  },
  "luminance": 0.09368
}

Semantic roles & 50–950 ramp

primary
#3152A4
secondary
#BFA972
accent
#B34ADD
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #3152A4

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

Preview Lab → · Contrast checker → · Palette generator →

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