#3158AB#3158AB

#3158AB is a mid, vivid blue. Relative luminance 0.106; OKLCH L 47.8% C 0.140 H 263.2°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#3158AB
RGBrgb(49, 88, 171)
HSLhsl(221, 55%, 43%)
HSVhsv(221, 71%, 67%)
CMYKcmyk(71.3%, 48.5%, 0%, 32.9%)
CIE-LABlab(38.85, 15.14, -48.58)
CIE-LCHlch(38.85, 50.88, 287.31°)
OKLaboklab(47.8% -0.0167 -0.1393)
OKLCHoklch(47.8% 0.14 263.2)
XYZxyz(12.1044, 10.5714, 39.9227)
Luminance0.1057 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3158AB #AB8431
analogous
#3195AB #3158AB #4731AB
triadic
#3158AB #AB3158 #58AB31
tetradic
#3158AB #AB3195 #AB8431 #31AB47
square
#3158AB #AB3195 #AB8431 #31AB47
split-complementary
#3158AB #AB4731 #95AB31
monochromatic
#16274C #23407B #3158AB #4D76CC #7D9ADA

Accessibility & contrast

On white

6.74
#3158AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#3158AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3158AB
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3158AB#FFFFFF#000000##FFFFFF
##3158AB1.006.743.116.74
#FFFFFF6.741.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B61AE
Deuteranopia (green-blind)
#0856A9
Tritanopia (blue-blind)
#006C79
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #3158ab;
/* rgb */ color: rgb(49, 88, 171);
/* oklch */ color: oklch(47.8% 0.140 263.2);
Tailwind
colors: {
  custom: {
    50: '#7886c4',
    500: '#3158ab',
    950: '#000000',
  },
}
SCSS
$custom: #3158ab;
$custom-light: #7886c4;
$custom-dark: #000000;
JSON
{
  "hex": "#3158ab",
  "rgb": {
    "r": 49,
    "g": 88,
    "b": 171
  },
  "hsl": {
    "h": 220.82,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.47799,
    "c": 0.14033,
    "h": 263.2
  },
  "luminance": 0.10573
}

Semantic roles & 50–950 ramp

primary
#3158AB
secondary
#C2AA75
accent
#AF49DF
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #3158AB

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

Preview Lab → · Contrast checker → · Palette generator →

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