#3154BB#3154BB

#3154BB is a mid, vivid blue. Relative luminance 0.106; OKLCH L 48.2% C 0.167 H 266.0°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#3154BB
RGBrgb(49, 84, 187)
HSLhsl(225, 58%, 46%)
HSVhsv(225, 74%, 73%)
CMYKcmyk(73.8%, 55.1%, 0%, 26.7%)
CIE-LABlab(38.86, 23.77, -57.98)
CIE-LCHlch(38.86, 62.66, 292.29°)
OKLaboklab(48.17% -0.0116 -0.1671)
OKLCHoklch(48.17% 0.167 266)
XYZxyz(13.4034, 10.5800, 48.3398)
Luminance0.1058 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3154BB #BB9831
analogous
#3199BB #3154BB #5331BB
triadic
#3154BB #BB3154 #54BB31
tetradic
#3154BB #BB3199 #BB9831 #31BB53
square
#3154BB #BB3199 #BB9831 #31BB53
split-complementary
#3154BB #BB5331 #99BB31
monochromatic
#18285A #243E8B #3154BB #5676D3 #879DE0

Accessibility & contrast

On white

6.74
#3154BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#3154BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3154BB
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3154BB#FFFFFF#000000##FFFFFF
##3154BB1.006.743.126.74
#FFFFFF6.741.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062BF
Deuteranopia (green-blind)
#0055B9
Tritanopia (blue-blind)
#006D7F
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #3154bb;
/* rgb */ color: rgb(49, 84, 187);
/* oklch */ color: oklch(48.2% 0.167 266.0);
Tailwind
colors: {
  custom: {
    50: '#7c83d0',
    500: '#3154bb',
    950: '#000000',
  },
}
SCSS
$custom: #3154bb;
$custom-light: #7c83d0;
$custom-dark: #000000;
JSON
{
  "hex": "#3154bb",
  "rgb": {
    "r": 49,
    "g": 84,
    "b": 187
  },
  "hsl": {
    "h": 224.783,
    "s": 58.475,
    "l": 46.275
  },
  "oklch": {
    "l": 0.48166,
    "c": 0.16747,
    "h": 266
  },
  "luminance": 0.10581
}

Semantic roles & 50–950 ramp

primary
#3154BB
secondary
#C9B67F
accent
#BA46E2
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #3154BB

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

Preview Lab → · Contrast checker → · Palette generator →

#3154BB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva