#3154B7#3154B7

#3154B7 is a mid, vivid blue. Relative luminance 0.104; OKLCH L 47.9% C 0.162 H 265.8°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#3154B7
RGBrgb(49, 84, 183)
HSLhsl(224, 58%, 45%)
HSVhsv(224, 73%, 72%)
CMYKcmyk(73.2%, 54.1%, 0%, 28.2%)
CIE-LABlab(38.57, 22.27, -56.11)
CIE-LCHlch(38.57, 60.37, 291.65°)
OKLaboklab(47.85% -0.0119 -0.1616)
OKLCHoklch(47.85% 0.162 265.8)
XYZxyz(12.9812, 10.4111, 46.1160)
Luminance0.1041 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3154B7 #B79431
analogous
#3197B7 #3154B7 #5131B7
triadic
#3154B7 #B73154 #54B731
tetradic
#3154B7 #B73197 #B79431 #31B751
square
#3154B7 #B73197 #B79431 #31B751
split-complementary
#3154B7 #B75131 #97B731
monochromatic
#172856 #243E87 #3154B7 #5475D1 #849CDE

Accessibility & contrast

On white

6.81
#3154B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#3154B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3154B7
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3154B7#FFFFFF#000000##FFFFFF
##3154B71.006.813.086.81
#FFFFFF6.811.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0361BA
Deuteranopia (green-blind)
#0055B5
Tritanopia (blue-blind)
#006C7D
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #3154b7;
/* rgb */ color: rgb(49, 84, 183);
/* oklch */ color: oklch(47.9% 0.162 265.8);
Tailwind
colors: {
  custom: {
    50: '#7b83cd',
    500: '#3154b7',
    950: '#000000',
  },
}
SCSS
$custom: #3154b7;
$custom-light: #7b83cd;
$custom-dark: #000000;
JSON
{
  "hex": "#3154b7",
  "rgb": {
    "r": 49,
    "g": 84,
    "b": 183
  },
  "hsl": {
    "h": 224.328,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.47852,
    "c": 0.16201,
    "h": 265.8
  },
  "luminance": 0.10413
}

Semantic roles & 50–950 ramp

primary
#3154B7
secondary
#C8B47C
accent
#B947E1
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #3154B7

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

Preview Lab → · Contrast checker → · Palette generator →

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