#3154B8#3154B8

#3154B8 is a mid, vivid blue. Relative luminance 0.105; OKLCH L 47.9% C 0.163 H 265.9°. Best body text is #FFFFFF at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#3154B8
RGBrgb(49, 84, 184)
HSLhsl(224, 58%, 46%)
HSVhsv(224, 73%, 72%)
CMYKcmyk(73.4%, 54.3%, 0%, 27.8%)
CIE-LABlab(38.64, 22.65, -56.58)
CIE-LCHlch(38.64, 60.94, 291.82°)
OKLaboklab(47.93% -0.0118 -0.163)
OKLCHoklch(47.93% 0.163 265.9)
XYZxyz(13.0856, 10.4529, 46.6661)
Luminance0.1045 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3154B8 #B89531
analogous
#3198B8 #3154B8 #5131B8
triadic
#3154B8 #B83154 #54B831
tetradic
#3154B8 #B83198 #B89531 #31B851
square
#3154B8 #B83198 #B89531 #31B851
split-complementary
#3154B8 #B85131 #98B831
monochromatic
#172857 #243E88 #3154B8 #5575D2 #859CDE

Accessibility & contrast

On white

6.79
#3154B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#3154B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3154B8
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3154B8#FFFFFF#000000##FFFFFF
##3154B81.006.793.096.79
#FFFFFF6.791.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BB
Deuteranopia (green-blind)
#0055B6
Tritanopia (blue-blind)
#006C7E
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #3154b8;
/* rgb */ color: rgb(49, 84, 184);
/* oklch */ color: oklch(47.9% 0.163 265.9);
Tailwind
colors: {
  custom: {
    50: '#7b83ce',
    500: '#3154b8',
    950: '#000000',
  },
}
SCSS
$custom: #3154b8;
$custom-light: #7b83ce;
$custom-dark: #000000;
JSON
{
  "hex": "#3154b8",
  "rgb": {
    "r": 49,
    "g": 84,
    "b": 184
  },
  "hsl": {
    "h": 224.444,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.4793,
    "c": 0.16338,
    "h": 265.9
  },
  "luminance": 0.10454
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3154B8

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

Preview Lab → · Contrast checker → · Palette generator →

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