#3158B0#3158B0

#3158B0 is a mid, vivid blue. Relative luminance 0.108; OKLCH L 48.2% C 0.147 H 263.8°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#3158B0
RGBrgb(49, 88, 176)
HSLhsl(222, 56%, 44%)
HSVhsv(222, 72%, 69%)
CMYKcmyk(72.2%, 50%, 0%, 31%)
CIE-LABlab(39.18, 17.02, -51.00)
CIE-LCHlch(39.18, 53.76, 288.46°)
OKLaboklab(48.16% -0.016 -0.1465)
OKLCHoklch(48.16% 0.147 263.8)
XYZxyz(12.5900, 10.7657, 42.4803)
Luminance0.1077 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3158B0 #B08931
analogous
#3198B0 #3158B0 #4A31B0
triadic
#3158B0 #B03158 #58B031
tetradic
#3158B0 #B03198 #B08931 #31B04A
square
#3158B0 #B03198 #B08931 #31B04A
split-complementary
#3158B0 #B04A31 #98B031
monochromatic
#162850 #244080 #3158B0 #5077CE #809CDC

Accessibility & contrast

On white

6.66
#3158B0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#3158B0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3158B0
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3158B0#FFFFFF#000000##FFFFFF
##3158B01.006.663.156.66
#FFFFFF6.661.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2562B3
Deuteranopia (green-blind)
#0057AE
Tritanopia (blue-blind)
#006D7B
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #3158b0;
/* rgb */ color: rgb(49, 88, 176);
/* oklch */ color: oklch(48.2% 0.147 263.8);
Tailwind
colors: {
  custom: {
    50: '#7986c8',
    500: '#3158b0',
    950: '#000000',
  },
}
SCSS
$custom: #3158b0;
$custom-light: #7986c8;
$custom-dark: #000000;
JSON
{
  "hex": "#3158b0",
  "rgb": {
    "r": 49,
    "g": 88,
    "b": 176
  },
  "hsl": {
    "h": 221.575,
    "s": 56.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.48161,
    "c": 0.14733,
    "h": 263.8
  },
  "luminance": 0.10767
}

Semantic roles & 50–950 ramp

primary
#3158B0
secondary
#C5AD78
accent
#B148E0
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #3158B0

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

Preview Lab → · Contrast checker → · Palette generator →

#3158B0 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva