#3154B5#3154B5

#3154B5 is a mid, vivid blue. Relative luminance 0.103; OKLCH L 47.7% C 0.159 H 265.7°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#3154B5
RGBrgb(49, 84, 181)
HSLhsl(224, 57%, 45%)
HSVhsv(224, 73%, 71%)
CMYKcmyk(72.9%, 53.6%, 0%, 29%)
CIE-LABlab(38.43, 21.52, -55.17)
CIE-LCHlch(38.43, 59.22, 291.31°)
OKLaboklab(47.7% -0.012 -0.1588)
OKLCHoklch(47.7% 0.159 265.7)
XYZxyz(12.7745, 10.3285, 45.0275)
Luminance0.1033 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3154B5 #B59231
analogous
#3196B5 #3154B5 #5031B5
triadic
#3154B5 #B53154 #54B531
tetradic
#3154B5 #B53196 #B59231 #31B550
square
#3154B5 #B53196 #B59231 #31B550
split-complementary
#3154B5 #B55031 #96B531
monochromatic
#172755 #243E85 #3154B5 #5374D0 #839BDD

Accessibility & contrast

On white

6.85
#3154B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#3154B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3154B5
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3154B5#FFFFFF#000000##FFFFFF
##3154B51.006.853.076.85
#FFFFFF6.851.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B61B8
Deuteranopia (green-blind)
#0055B3
Tritanopia (blue-blind)
#006B7C
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #3154b5;
/* rgb */ color: rgb(49, 84, 181);
/* oklch */ color: oklch(47.7% 0.159 265.7);
Tailwind
colors: {
  custom: {
    50: '#7b83cc',
    500: '#3154b5',
    950: '#000000',
  },
}
SCSS
$custom: #3154b5;
$custom-light: #7b83cc;
$custom-dark: #000000;
JSON
{
  "hex": "#3154b5",
  "rgb": {
    "r": 49,
    "g": 84,
    "b": 181
  },
  "hsl": {
    "h": 224.091,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.47696,
    "c": 0.15926,
    "h": 265.7
  },
  "luminance": 0.1033
}

Semantic roles & 50–950 ramp

primary
#3154B5
secondary
#C7B37B
accent
#B847E1
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #3154B5

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

Preview Lab → · Contrast checker → · Palette generator →

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