#3154B2#3154B2

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

Color values

HEX#3154B2
RGBrgb(49, 84, 178)
HSLhsl(224, 57%, 45%)
HSVhsv(224, 72%, 70%)
CMYKcmyk(72.5%, 52.8%, 0%, 30.2%)
CIE-LABlab(38.21, 20.40, -53.75)
CIE-LCHlch(38.21, 57.49, 290.78°)
OKLaboklab(47.47% -0.0123 -0.1546)
OKLCHoklch(47.47% 0.155 265.4)
XYZxyz(12.4700, 10.2067, 43.4237)
Luminance0.1021 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3154B2 #B28F31
analogous
#3195B2 #3154B2 #4F31B2
triadic
#3154B2 #B23154 #54B231
tetradic
#3154B2 #B23195 #B28F31 #31B24F
square
#3154B2 #B23195 #B28F31 #31B24F
split-complementary
#3154B2 #B24F31 #95B231
monochromatic
#172752 #243D82 #3154B2 #5173CF #819ADC

Accessibility & contrast

On white

6.90
#3154B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#3154B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3154B2
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3154B2#FFFFFF#000000##FFFFFF
##3154B21.006.903.046.90
#FFFFFF6.901.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1460B5
Deuteranopia (green-blind)
#0054B0
Tritanopia (blue-blind)
#006B7B
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #3154b2;
/* rgb */ color: rgb(49, 84, 178);
/* oklch */ color: oklch(47.5% 0.155 265.4);
Tailwind
colors: {
  custom: {
    50: '#7a83ca',
    500: '#3154b2',
    950: '#000000',
  },
}
SCSS
$custom: #3154b2;
$custom-light: #7a83ca;
$custom-dark: #000000;
JSON
{
  "hex": "#3154b2",
  "rgb": {
    "r": 49,
    "g": 84,
    "b": 178
  },
  "hsl": {
    "h": 223.721,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.47465,
    "c": 0.15511,
    "h": 265.4
  },
  "luminance": 0.10208
}

Semantic roles & 50–950 ramp

primary
#3154B2
secondary
#C5B179
accent
#B748E0
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #3154B2

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

Preview Lab → · Contrast checker → · Palette generator →

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