#3154BF#3154BF

#3154BF is a mid, vivid blue. Relative luminance 0.108; OKLCH L 48.5% C 0.173 H 266.2°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#3154BF
RGBrgb(49, 84, 191)
HSLhsl(225, 59%, 47%)
HSVhsv(225, 74%, 75%)
CMYKcmyk(74.3%, 56%, 0%, 25.1%)
CIE-LABlab(39.16, 25.26, -59.83)
CIE-LCHlch(39.16, 64.95, 292.89°)
OKLaboklab(48.49% -0.0113 -0.1725)
OKLCHoklch(48.49% 0.173 266.2)
XYZxyz(13.8376, 10.7537, 50.6265)
Luminance0.1076 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3154BF #BF9C31
analogous
#319BBF #3154BF #5531BF
triadic
#3154BF #BF3154 #54BF31
tetradic
#3154BF #BF319B #BF9C31 #31BF55
square
#3154BF #BF319B #BF9C31 #31BF55
split-complementary
#3154BF #BF5531 #9BBF31
monochromatic
#18295E #253F8E #3154BF #5977D4 #8A9FE1

Accessibility & contrast

On white

6.66
#3154BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#3154BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3154BF
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3154BF#FFFFFF#000000##FFFFFF
##3154BF1.006.663.156.66
#FFFFFF6.661.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C3
Deuteranopia (green-blind)
#0056BD
Tritanopia (blue-blind)
#006E81
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #3154bf;
/* rgb */ color: rgb(49, 84, 191);
/* oklch */ color: oklch(48.5% 0.173 266.2);
Tailwind
colors: {
  custom: {
    50: '#7d83d3',
    500: '#3154bf',
    950: '#000000',
  },
}
SCSS
$custom: #3154bf;
$custom-light: #7d83d3;
$custom-dark: #000000;
JSON
{
  "hex": "#3154bf",
  "rgb": {
    "r": 49,
    "g": 84,
    "b": 191
  },
  "hsl": {
    "h": 225.211,
    "s": 59.167,
    "l": 47.059
  },
  "oklch": {
    "l": 0.48485,
    "c": 0.17289,
    "h": 266.2
  },
  "luminance": 0.10755
}

Semantic roles & 50–950 ramp

primary
#3154BF
secondary
#CBB981
accent
#BC45E2
background
#F8F8FD
surface
#EFEFFA
border
#CACAD3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #3154BF

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

Preview Lab → · Contrast checker → · Palette generator →

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