#3151A1#3151A1

#3151A1 is a mid, vivid blue. Relative luminance 0.091; OKLCH L 45.6% C 0.135 H 265.1°. Best body text is #FFFFFF at 7.44:1 contrast (WCAG AA passes).

Color values

HEX#3151A1
RGBrgb(49, 81, 161)
HSLhsl(223, 53%, 41%)
HSVhsv(223, 70%, 63%)
CMYKcmyk(69.6%, 49.7%, 0%, 36.9%)
CIE-LABlab(36.20, 15.99, -46.89)
CIE-LCHlch(36.20, 49.55, 288.83°)
OKLaboklab(45.56% -0.0116 -0.1345)
OKLCHoklch(45.56% 0.135 265.1)
XYZxyz(10.6398, 9.1100, 34.9090)
Luminance0.0911 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3151A1 #A18131
analogous
#3189A1 #3151A1 #4931A1
triadic
#3151A1 #A13151 #51A131
tetradic
#3151A1 #A13189 #A18131 #31A149
square
#3151A1 #A13189 #A18131 #31A149
split-complementary
#3151A1 #A14931 #89A131
monochromatic
#142243 #233972 #3151A1 #486CC7 #7792D6

Accessibility & contrast

On white

7.44
#3151A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#3151A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3151A1
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3151A1#FFFFFF#000000##FFFFFF
##3151A11.007.442.827.44
#FFFFFF7.441.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#255BA4
Deuteranopia (green-blind)
#03509F
Tritanopia (blue-blind)
#006471
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #3151a1;
/* rgb */ color: rgb(49, 81, 161);
/* oklch */ color: oklch(45.6% 0.135 265.1);
Tailwind
colors: {
  custom: {
    50: '#7781bd',
    500: '#3151a1',
    950: '#000000',
  },
}
SCSS
$custom: #3151a1;
$custom-light: #7781bd;
$custom-dark: #000000;
JSON
{
  "hex": "#3151a1",
  "rgb": {
    "r": 49,
    "g": 81,
    "b": 161
  },
  "hsl": {
    "h": 222.857,
    "s": 53.333,
    "l": 41.176
  },
  "oklch": {
    "l": 0.45557,
    "c": 0.135,
    "h": 265.1
  },
  "luminance": 0.09111
}

Semantic roles & 50–950 ramp

primary
#3151A1
secondary
#BEA870
accent
#B34BDD
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #3151A1

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

Preview Lab → · Contrast checker → · Palette generator →

#3151A1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva