#3154B1#3154B1

#3154B1 is a mid, vivid blue. Relative luminance 0.102; OKLCH L 47.4% C 0.154 H 265.4°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#3154B1
RGBrgb(49, 84, 177)
HSLhsl(224, 57%, 44%)
HSVhsv(224, 72%, 69%)
CMYKcmyk(72.3%, 52.5%, 0%, 30.6%)
CIE-LABlab(38.14, 20.02, -53.27)
CIE-LCHlch(38.14, 56.91, 290.60°)
OKLaboklab(47.39% -0.0124 -0.1532)
OKLCHoklch(47.39% 0.154 265.4)
XYZxyz(12.3700, 10.1666, 42.8969)
Luminance0.1017 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3154B1 #B18E31
analogous
#3194B1 #3154B1 #4E31B1
triadic
#3154B1 #B13154 #54B131
tetradic
#3154B1 #B13194 #B18E31 #31B14E
square
#3154B1 #B13194 #B18E31 #31B14E
split-complementary
#3154B1 #B14E31 #94B131
monochromatic
#162751 #243D81 #3154B1 #5173CF #8099DC

Accessibility & contrast

On white

6.92
#3154B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#3154B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3154B1
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3154B1#FFFFFF#000000##FFFFFF
##3154B11.006.923.036.92
#FFFFFF6.921.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1660B4
Deuteranopia (green-blind)
#0054AF
Tritanopia (blue-blind)
#006A7A
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #3154b1;
/* rgb */ color: rgb(49, 84, 177);
/* oklch */ color: oklch(47.4% 0.154 265.4);
Tailwind
colors: {
  custom: {
    50: '#7a83c9',
    500: '#3154b1',
    950: '#000000',
  },
}
SCSS
$custom: #3154b1;
$custom-light: #7a83c9;
$custom-dark: #000000;
JSON
{
  "hex": "#3154b1",
  "rgb": {
    "r": 49,
    "g": 84,
    "b": 177
  },
  "hsl": {
    "h": 223.594,
    "s": 56.637,
    "l": 44.314
  },
  "oklch": {
    "l": 0.47389,
    "c": 0.15372,
    "h": 265.4
  },
  "luminance": 0.10168
}

Semantic roles & 50–950 ramp

primary
#3154B1
secondary
#C5B079
accent
#B648E0
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #3154B1

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

Preview Lab → · Contrast checker → · Palette generator →

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