#3154BA#3154BA

#3154BA is a mid, vivid blue. Relative luminance 0.105; OKLCH L 48.1% C 0.166 H 266.0°. Best body text is #FFFFFF at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#3154BA
RGBrgb(49, 84, 186)
HSLhsl(225, 58%, 46%)
HSVhsv(225, 74%, 73%)
CMYKcmyk(73.7%, 54.8%, 0%, 27.1%)
CIE-LABlab(38.79, 23.40, -57.51)
CIE-LCHlch(38.79, 62.09, 292.14°)
OKLaboklab(48.09% -0.0116 -0.1657)
OKLCHoklch(48.09% 0.166 266)
XYZxyz(13.2968, 10.5374, 47.7780)
Luminance0.1054 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3154BA #BA9731
analogous
#3198BA #3154BA #5331BA
triadic
#3154BA #BA3154 #54BA31
tetradic
#3154BA #BA3198 #BA9731 #31BA53
square
#3154BA #BA3198 #BA9731 #31BA53
split-complementary
#3154BA #BA5331 #98BA31
monochromatic
#172859 #243E8A #3154BA #5676D2 #869DDF

Accessibility & contrast

On white

6.76
#3154BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#3154BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3154BA
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3154BA#FFFFFF#000000##FFFFFF
##3154BA1.006.763.116.76
#FFFFFF6.761.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.761.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3154ba;
/* rgb */ color: rgb(49, 84, 186);
/* oklch */ color: oklch(48.1% 0.166 266.0);
Tailwind
colors: {
  custom: {
    50: '#7c83cf',
    500: '#3154ba',
    950: '#000000',
  },
}
SCSS
$custom: #3154ba;
$custom-light: #7c83cf;
$custom-dark: #000000;
JSON
{
  "hex": "#3154ba",
  "rgb": {
    "r": 49,
    "g": 84,
    "b": 186
  },
  "hsl": {
    "h": 224.672,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.48087,
    "c": 0.16611,
    "h": 266
  },
  "luminance": 0.10539
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3154BA

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

Preview Lab → · Contrast checker → · Palette generator →

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