#3154B6#3154B6

#3154B6 is a mid, vivid blue. Relative luminance 0.104; OKLCH L 47.8% C 0.161 H 265.7°. Best body text is #FFFFFF at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#3154B6
RGBrgb(49, 84, 182)
HSLhsl(224, 58%, 45%)
HSVhsv(224, 73%, 71%)
CMYKcmyk(73.1%, 53.8%, 0%, 28.6%)
CIE-LABlab(38.50, 21.90, -55.64)
CIE-LCHlch(38.50, 59.79, 291.48°)
OKLaboklab(47.77% -0.012 -0.1602)
OKLCHoklch(47.77% 0.161 265.7)
XYZxyz(12.8775, 10.3696, 45.5698)
Luminance0.1037 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3154B6 #B69331
analogous
#3196B6 #3154B6 #5131B6
triadic
#3154B6 #B63154 #54B631
tetradic
#3154B6 #B63196 #B69331 #31B651
square
#3154B6 #B63196 #B69331 #31B651
split-complementary
#3154B6 #B65131 #96B631
monochromatic
#172756 #243E86 #3154B6 #5374D1 #849BDE

Accessibility & contrast

On white

6.83
#3154B6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #3154B6
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3154B6#FFFFFF#000000##FFFFFF
##3154B61.006.833.076.83
#FFFFFF6.831.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0761B9
Deuteranopia (green-blind)
#0055B4
Tritanopia (blue-blind)
#006C7D
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #3154b6;
/* rgb */ color: rgb(49, 84, 182);
/* oklch */ color: oklch(47.8% 0.161 265.7);
Tailwind
colors: {
  custom: {
    50: '#7b83cd',
    500: '#3154b6',
    950: '#000000',
  },
}
SCSS
$custom: #3154b6;
$custom-light: #7b83cd;
$custom-dark: #000000;
JSON
{
  "hex": "#3154b6",
  "rgb": {
    "r": 49,
    "g": 84,
    "b": 182
  },
  "hsl": {
    "h": 224.211,
    "s": 57.576,
    "l": 45.294
  },
  "oklch": {
    "l": 0.47774,
    "c": 0.16063,
    "h": 265.7
  },
  "luminance": 0.10371
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3154B6

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

Preview Lab → · Contrast checker → · Palette generator →

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