#3158B1#3158B1

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

Color values

HEX#3158B1
RGBrgb(49, 88, 177)
HSLhsl(222, 57%, 44%)
HSVhsv(222, 72%, 69%)
CMYKcmyk(72.3%, 50.3%, 0%, 30.6%)
CIE-LABlab(39.25, 17.40, -51.48)
CIE-LCHlch(39.25, 54.34, 288.67°)
OKLaboklab(48.23% -0.0158 -0.1479)
OKLCHoklch(48.23% 0.149 263.9)
XYZxyz(12.6894, 10.8054, 43.0033)
Luminance0.1081 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3158B1 #B18A31
analogous
#3198B1 #3158B1 #4A31B1
triadic
#3158B1 #B13158 #58B131
tetradic
#3158B1 #B13198 #B18A31 #31B14A
square
#3158B1 #B13198 #B18A31 #31B14A
split-complementary
#3158B1 #B14A31 #98B131
monochromatic
#162851 #244081 #3158B1 #5177CF #809CDC

Accessibility & contrast

On white

6.64
#3158B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#3158B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3158B1
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3158B1#FFFFFF#000000##FFFFFF
##3158B11.006.643.166.64
#FFFFFF6.641.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2463B4
Deuteranopia (green-blind)
#0057AF
Tritanopia (blue-blind)
#006D7C
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #3158b1;
/* rgb */ color: rgb(49, 88, 177);
/* oklch */ color: oklch(48.2% 0.149 263.9);
Tailwind
colors: {
  custom: {
    50: '#7a86c9',
    500: '#3158b1',
    950: '#000000',
  },
}
SCSS
$custom: #3158b1;
$custom-light: #7a86c9;
$custom-dark: #000000;
JSON
{
  "hex": "#3158b1",
  "rgb": {
    "r": 49,
    "g": 88,
    "b": 177
  },
  "hsl": {
    "h": 221.719,
    "s": 56.637,
    "l": 44.314
  },
  "oklch": {
    "l": 0.48234,
    "c": 0.14871,
    "h": 263.9
  },
  "luminance": 0.10807
}

Semantic roles & 50–950 ramp

primary
#3158B1
secondary
#C5AE79
accent
#B248E0
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #3158B1

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

Preview Lab → · Contrast checker → · Palette generator →

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