#3152A2#3152A2

#3152A2 is a mid, vivid blue. Relative luminance 0.093; OKLCH L 45.8% C 0.135 H 264.7°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#3152A2
RGBrgb(49, 82, 162)
HSLhsl(222, 54%, 41%)
HSVhsv(222, 70%, 64%)
CMYKcmyk(69.8%, 49.4%, 0%, 36.5%)
CIE-LABlab(36.55, 15.71, -46.93)
CIE-LCHlch(36.55, 49.49, 288.51°)
OKLaboklab(45.85% -0.0124 -0.1346)
OKLCHoklch(45.85% 0.135 264.7)
XYZxyz(10.8032, 9.2951, 35.4002)
Luminance0.0930 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3152A2 #A28131
analogous
#318BA2 #3152A2 #4931A2
triadic
#3152A2 #A23152 #52A231
tetradic
#3152A2 #A2318B #A28131 #31A249
square
#3152A2 #A2318B #A28131 #31A249
split-complementary
#3152A2 #A24931 #8BA231
monochromatic
#152244 #233A73 #3152A2 #486EC8 #7793D6

Accessibility & contrast

On white

7.34
#3152A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#3152A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3152A2
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3152A2#FFFFFF#000000##FFFFFF
##3152A21.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#265BA5
Deuteranopia (green-blind)
#0551A0
Tritanopia (blue-blind)
#006572
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #3152a2;
/* rgb */ color: rgb(49, 82, 162);
/* oklch */ color: oklch(45.8% 0.135 264.7);
Tailwind
colors: {
  custom: {
    50: '#7782be',
    500: '#3152a2',
    950: '#000000',
  },
}
SCSS
$custom: #3152a2;
$custom-light: #7782be;
$custom-dark: #000000;
JSON
{
  "hex": "#3152a2",
  "rgb": {
    "r": 49,
    "g": 82,
    "b": 162
  },
  "hsl": {
    "h": 222.478,
    "s": 53.555,
    "l": 41.373
  },
  "oklch": {
    "l": 0.45847,
    "c": 0.13515,
    "h": 264.7
  },
  "luminance": 0.09296
}

Semantic roles & 50–950 ramp

primary
#3152A2
secondary
#BEA871
accent
#B24BDD
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #3152A2

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

Preview Lab → · Contrast checker → · Palette generator →

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