#3152B2#3152B2

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

Color values

HEX#3152B2
RGBrgb(49, 82, 178)
HSLhsl(225, 57%, 45%)
HSVhsv(225, 72%, 70%)
CMYKcmyk(72.5%, 53.9%, 0%, 30.2%)
CIE-LABlab(37.66, 21.71, -54.63)
CIE-LCHlch(37.66, 58.79, 291.68°)
OKLaboklab(47.05% -0.0107 -0.1573)
OKLCHoklch(47.05% 0.158 266.1)
XYZxyz(12.3170, 9.9006, 43.3727)
Luminance0.0990 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3152B2 #B29131
analogous
#3193B2 #3152B2 #5131B2
triadic
#3152B2 #B23152 #52B231
tetradic
#3152B2 #B23193 #B29131 #31B251
square
#3152B2 #B23193 #B29131 #31B251
split-complementary
#3152B2 #B25131 #93B231
monochromatic
#172652 #243C82 #3152B2 #5171CF #8198DC

Accessibility & contrast

On white

7.05
#3152B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#3152B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3152B2
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3152B2#FFFFFF#000000##FFFFFF
##3152B21.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#085FB5
Deuteranopia (green-blind)
#0053B0
Tritanopia (blue-blind)
#00697A
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #3152b2;
/* rgb */ color: rgb(49, 82, 178);
/* oklch */ color: oklch(47.1% 0.158 266.1);
Tailwind
colors: {
  custom: {
    50: '#7a82ca',
    500: '#3152b2',
    950: '#000000',
  },
}
SCSS
$custom: #3152b2;
$custom-light: #7a82ca;
$custom-dark: #000000;
JSON
{
  "hex": "#3152b2",
  "rgb": {
    "r": 49,
    "g": 82,
    "b": 178
  },
  "hsl": {
    "h": 224.651,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.47051,
    "c": 0.15762,
    "h": 266.1
  },
  "luminance": 0.09902
}

Semantic roles & 50–950 ramp

primary
#3152B2
secondary
#C5B279
accent
#B948E0
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #3152B2

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

Preview Lab → · Contrast checker → · Palette generator →

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