#3154B3#3154B3

#3154B3 is a mid, vivid blue. Relative luminance 0.102; OKLCH L 47.5% C 0.156 H 265.5°. Best body text is #FFFFFF at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#3154B3
RGBrgb(49, 84, 179)
HSLhsl(224, 57%, 45%)
HSVhsv(224, 73%, 70%)
CMYKcmyk(72.6%, 53.1%, 0%, 29.8%)
CIE-LABlab(38.28, 20.77, -54.22)
CIE-LCHlch(38.28, 58.07, 290.96°)
OKLaboklab(47.54% -0.0122 -0.156)
OKLCHoklch(47.54% 0.156 265.5)
XYZxyz(12.5708, 10.2470, 43.9544)
Luminance0.1025 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3154B3 #B39031
analogous
#3195B3 #3154B3 #4F31B3
triadic
#3154B3 #B33154 #54B331
tetradic
#3154B3 #B33195 #B39031 #31B34F
square
#3154B3 #B33195 #B39031 #31B34F
split-complementary
#3154B3 #B34F31 #95B331
monochromatic
#172753 #243D83 #3154B3 #5274D0 #829ADD

Accessibility & contrast

On white

6.89
#3154B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#3154B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3154B3
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3154B3#FFFFFF#000000##FFFFFF
##3154B31.006.893.056.89
#FFFFFF6.891.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1160B6
Deuteranopia (green-blind)
#0054B1
Tritanopia (blue-blind)
#006B7B
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #3154b3;
/* rgb */ color: rgb(49, 84, 179);
/* oklch */ color: oklch(47.5% 0.156 265.5);
Tailwind
colors: {
  custom: {
    50: '#7a83ca',
    500: '#3154b3',
    950: '#000000',
  },
}
SCSS
$custom: #3154b3;
$custom-light: #7a83ca;
$custom-dark: #000000;
JSON
{
  "hex": "#3154b3",
  "rgb": {
    "r": 49,
    "g": 84,
    "b": 179
  },
  "hsl": {
    "h": 223.846,
    "s": 57.018,
    "l": 44.706
  },
  "oklch": {
    "l": 0.47542,
    "c": 0.15649,
    "h": 265.5
  },
  "luminance": 0.10248
}

Semantic roles & 50–950 ramp

primary
#3154B3
secondary
#C6B17A
accent
#B748E0
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #3154B3

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

Preview Lab → · Contrast checker → · Palette generator →

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