#3158A5#3158A5

#3158A5 is a mid, vivid blue. Relative luminance 0.103; OKLCH L 47.4% C 0.132 H 262.3°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#3158A5
RGBrgb(49, 88, 165)
HSLhsl(220, 54%, 42%)
HSVhsv(220, 70%, 65%)
CMYKcmyk(70.3%, 46.7%, 0%, 35.3%)
CIE-LABlab(38.46, 12.89, -45.64)
CIE-LCHlch(38.46, 47.43, 285.77°)
OKLaboklab(47.38% -0.0176 -0.1307)
OKLCHoklch(47.38% 0.132 262.3)
XYZxyz(11.5455, 10.3478, 36.9789)
Luminance0.1035 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3158A5 #A57E31
analogous
#3192A5 #3158A5 #4431A5
triadic
#3158A5 #A53158 #58A531
tetradic
#3158A5 #A53192 #A57E31 #31A544
square
#3158A5 #A53192 #A57E31 #31A544
split-complementary
#3158A5 #A54431 #92A531
monochromatic
#152647 #233F76 #3158A5 #4A75C9 #7999D7

Accessibility & contrast

On white

6.84
#3158A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#3158A5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3158A5
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3158A5#FFFFFF#000000##FFFFFF
##3158A51.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3160A8
Deuteranopia (green-blind)
#1956A3
Tritanopia (blue-blind)
#006A76
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #3158a5;
/* rgb */ color: rgb(49, 88, 165);
/* oklch */ color: oklch(47.4% 0.132 262.3);
Tailwind
colors: {
  custom: {
    50: '#7786c0',
    500: '#3158a5',
    950: '#000000',
  },
}
SCSS
$custom: #3158a5;
$custom-light: #7786c0;
$custom-dark: #000000;
JSON
{
  "hex": "#3158a5",
  "rgb": {
    "r": 49,
    "g": 88,
    "b": 165
  },
  "hsl": {
    "h": 219.828,
    "s": 54.206,
    "l": 41.961
  },
  "oklch": {
    "l": 0.47375,
    "c": 0.13188,
    "h": 262.3
  },
  "luminance": 0.10349
}

Semantic roles & 50–950 ramp

primary
#3158A5
secondary
#C0A672
accent
#AC4ADE
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #3158A5

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

Preview Lab → · Contrast checker → · Palette generator →

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