#3158A4#3158A4

#3158A4 is a mid, vivid blue. Relative luminance 0.103; OKLCH L 47.3% C 0.130 H 262.2°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#3158A4
RGBrgb(49, 88, 164)
HSLhsl(220, 54%, 42%)
HSVhsv(220, 70%, 64%)
CMYKcmyk(70.1%, 46.3%, 0%, 35.7%)
CIE-LABlab(38.40, 12.51, -45.15)
CIE-LCHlch(38.40, 46.85, 285.49°)
OKLaboklab(47.31% -0.0178 -0.1292)
OKLCHoklch(47.31% 0.13 262.2)
XYZxyz(11.4548, 10.3116, 36.5014)
Luminance0.1031 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3158A4 #A47D31
analogous
#3192A4 #3158A4 #4331A4
triadic
#3158A4 #A43158 #58A431
tetradic
#3158A4 #A43192 #A47D31 #31A443
square
#3158A4 #A43192 #A47D31 #31A443
split-complementary
#3158A4 #A44331 #92A431
monochromatic
#152546 #233F75 #3158A4 #4975C9 #7999D7

Accessibility & contrast

On white

6.86
#3158A4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#3158A4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3158A4
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3158A4#FFFFFF#000000##FFFFFF
##3158A41.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3260A7
Deuteranopia (green-blind)
#1A55A2
Tritanopia (blue-blind)
#006A76
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #3158a4;
/* rgb */ color: rgb(49, 88, 164);
/* oklch */ color: oklch(47.3% 0.130 262.2);
Tailwind
colors: {
  custom: {
    50: '#7786bf',
    500: '#3158a4',
    950: '#000000',
  },
}
SCSS
$custom: #3158a4;
$custom-light: #7786bf;
$custom-dark: #000000;
JSON
{
  "hex": "#3158a4",
  "rgb": {
    "r": 49,
    "g": 88,
    "b": 164
  },
  "hsl": {
    "h": 219.652,
    "s": 53.991,
    "l": 41.765
  },
  "oklch": {
    "l": 0.47305,
    "c": 0.13046,
    "h": 262.2
  },
  "luminance": 0.10313
}

Semantic roles & 50–950 ramp

primary
#3158A4
secondary
#BFA572
accent
#AC4ADD
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #3158A4

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

Preview Lab → · Contrast checker → · Palette generator →

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