#3152B3#3152B3

#3152B3 is a mid, vivid blue. Relative luminance 0.099; OKLCH L 47.1% C 0.159 H 266.2°. Best body text is #FFFFFF at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#3152B3
RGBrgb(49, 82, 179)
HSLhsl(225, 57%, 45%)
HSVhsv(225, 73%, 70%)
CMYKcmyk(72.6%, 54.2%, 0%, 29.8%)
CIE-LABlab(37.74, 22.09, -55.11)
CIE-LCHlch(37.74, 59.37, 291.84°)
OKLaboklab(47.13% -0.0106 -0.1587)
OKLCHoklch(47.13% 0.159 266.2)
XYZxyz(12.4178, 9.9409, 43.9034)
Luminance0.0994 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3152B3 #B39231
analogous
#3193B3 #3152B3 #5131B3
triadic
#3152B3 #B33152 #52B331
tetradic
#3152B3 #B33193 #B39231 #31B351
square
#3152B3 #B33193 #B39231 #31B351
split-complementary
#3152B3 #B35131 #93B331
monochromatic
#172653 #243C83 #3152B3 #5272D0 #8299DD

Accessibility & contrast

On white

7.03
#3152B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#3152B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3152B3
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3152B3#FFFFFF#000000##FFFFFF
##3152B31.007.032.997.03
#FFFFFF7.031.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#045FB6
Deuteranopia (green-blind)
#0053B1
Tritanopia (blue-blind)
#00697A
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #3152b3;
/* rgb */ color: rgb(49, 82, 179);
/* oklch */ color: oklch(47.1% 0.159 266.2);
Tailwind
colors: {
  custom: {
    50: '#7a82ca',
    500: '#3152b3',
    950: '#000000',
  },
}
SCSS
$custom: #3152b3;
$custom-light: #7a82ca;
$custom-dark: #000000;
JSON
{
  "hex": "#3152b3",
  "rgb": {
    "r": 49,
    "g": 82,
    "b": 179
  },
  "hsl": {
    "h": 224.769,
    "s": 57.018,
    "l": 44.706
  },
  "oklch": {
    "l": 0.47129,
    "c": 0.159,
    "h": 266.2
  },
  "luminance": 0.09942
}

Semantic roles & 50–950 ramp

primary
#3152B3
secondary
#C6B37A
accent
#BA48E0
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #3152B3

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

Preview Lab → · Contrast checker → · Palette generator →

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