#3154BD#3154BD

#3154BD is a mid, vivid blue. Relative luminance 0.107; OKLCH L 48.3% C 0.170 H 266.1°. Best body text is #FFFFFF at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#3154BD
RGBrgb(49, 84, 189)
HSLhsl(225, 59%, 47%)
HSVhsv(225, 74%, 74%)
CMYKcmyk(74.1%, 55.6%, 0%, 25.9%)
CIE-LABlab(39.01, 24.52, -58.91)
CIE-LCHlch(39.01, 63.81, 292.60°)
OKLaboklab(48.33% -0.0114 -0.1698)
OKLCHoklch(48.33% 0.17 266.1)
XYZxyz(13.6190, 10.6663, 49.4753)
Luminance0.1067 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3154BD #BD9A31
analogous
#319ABD #3154BD #5431BD
triadic
#3154BD #BD3154 #54BD31
tetradic
#3154BD #BD319A #BD9A31 #31BD54
square
#3154BD #BD319A #BD9A31 #31BD54
split-complementary
#3154BD #BD5431 #9ABD31
monochromatic
#18295C #243E8C #3154BD #5877D4 #889EE0

Accessibility & contrast

On white

6.70
#3154BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#3154BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3154BD
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3154BD#FFFFFF#000000##FFFFFF
##3154BD1.006.703.136.70
#FFFFFF6.701.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C1
Deuteranopia (green-blind)
#0056BB
Tritanopia (blue-blind)
#006E80
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #3154bd;
/* rgb */ color: rgb(49, 84, 189);
/* oklch */ color: oklch(48.3% 0.170 266.1);
Tailwind
colors: {
  custom: {
    50: '#7d83d2',
    500: '#3154bd',
    950: '#000000',
  },
}
SCSS
$custom: #3154bd;
$custom-light: #7d83d2;
$custom-dark: #000000;
JSON
{
  "hex": "#3154bd",
  "rgb": {
    "r": 49,
    "g": 84,
    "b": 189
  },
  "hsl": {
    "h": 225,
    "s": 58.824,
    "l": 46.667
  },
  "oklch": {
    "l": 0.48325,
    "c": 0.17019,
    "h": 266.1
  },
  "luminance": 0.10668
}

Semantic roles & 50–950 ramp

primary
#3154BD
secondary
#CAB780
accent
#BB46E2
background
#F8F8FD
surface
#EFEFFA
border
#CACAD3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #3154BD

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

Preview Lab → · Contrast checker → · Palette generator →

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