#3151BA#3151BA

#3151BA is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.5% C 0.170 H 266.8°. Best body text is #FFFFFF at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#3151BA
RGBrgb(49, 81, 186)
HSLhsl(226, 58%, 46%)
HSVhsv(226, 74%, 73%)
CMYKcmyk(73.7%, 56.5%, 0%, 27.1%)
CIE-LABlab(37.99, 25.36, -58.82)
CIE-LCHlch(37.99, 64.05, 293.33°)
OKLaboklab(47.48% -0.0093 -0.1696)
OKLCHoklch(47.48% 0.17 266.8)
XYZxyz(13.0689, 10.0816, 47.7020)
Luminance0.1008 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3151BA #BA9A31
analogous
#3195BA #3151BA #5531BA
triadic
#3151BA #BA3151 #51BA31
tetradic
#3151BA #BA3195 #BA9A31 #31BA55
square
#3151BA #BA3195 #BA9A31 #31BA55
split-complementary
#3151BA #BA5531 #95BA31
monochromatic
#172759 #243C8A #3151BA #5673D2 #869BDF

Accessibility & contrast

On white

6.96
#3151BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#3151BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3151BA
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3151BA#FFFFFF#000000##FFFFFF
##3151BA1.006.963.026.96
#FFFFFF6.961.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BE
Deuteranopia (green-blind)
#0053B8
Tritanopia (blue-blind)
#006B7D
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #3151ba;
/* rgb */ color: rgb(49, 81, 186);
/* oklch */ color: oklch(47.5% 0.170 266.8);
Tailwind
colors: {
  custom: {
    50: '#7c81d0',
    500: '#3151ba',
    950: '#000000',
  },
}
SCSS
$custom: #3151ba;
$custom-light: #7c81d0;
$custom-dark: #000000;
JSON
{
  "hex": "#3151ba",
  "rgb": {
    "r": 49,
    "g": 81,
    "b": 186
  },
  "hsl": {
    "h": 225.985,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.47484,
    "c": 0.16983,
    "h": 266.8
  },
  "luminance": 0.10083
}

Semantic roles & 50–950 ramp

primary
#3151BA
secondary
#C9B77E
accent
#BD46E2
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #3151BA

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

Preview Lab → · Contrast checker → · Palette generator →

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