#3158AD#3158AD

#3158AD is a mid, vivid blue. Relative luminance 0.106; OKLCH L 47.9% C 0.143 H 263.4°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#3158AD
RGBrgb(49, 88, 173)
HSLhsl(221, 56%, 44%)
HSVhsv(221, 72%, 68%)
CMYKcmyk(71.7%, 49.1%, 0%, 32.2%)
CIE-LABlab(38.98, 15.89, -49.55)
CIE-LCHlch(38.98, 52.04, 287.78°)
OKLaboklab(47.94% -0.0164 -0.1422)
OKLCHoklch(47.94% 0.143 263.4)
XYZxyz(12.2965, 10.6483, 40.9343)
Luminance0.1065 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3158AD #AD8631
analogous
#3196AD #3158AD #4831AD
triadic
#3158AD #AD3158 #58AD31
tetradic
#3158AD #AD3196 #AD8631 #31AD48
square
#3158AD #AD3196 #AD8631 #31AD48
split-complementary
#3158AD #AD4831 #96AD31
monochromatic
#16274E #23407D #3158AD #4E76CD #7E9BDA

Accessibility & contrast

On white

6.71
#3158AD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#3158AD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3158AD
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3158AD#FFFFFF#000000##FFFFFF
##3158AD1.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2962B0
Deuteranopia (green-blind)
#0056AB
Tritanopia (blue-blind)
#006C7A
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #3158ad;
/* rgb */ color: rgb(49, 88, 173);
/* oklch */ color: oklch(47.9% 0.143 263.4);
Tailwind
colors: {
  custom: {
    50: '#7986c6',
    500: '#3158ad',
    950: '#000000',
  },
}
SCSS
$custom: #3158ad;
$custom-light: #7986c6;
$custom-dark: #000000;
JSON
{
  "hex": "#3158ad",
  "rgb": {
    "r": 49,
    "g": 88,
    "b": 173
  },
  "hsl": {
    "h": 221.129,
    "s": 55.856,
    "l": 43.529
  },
  "oklch": {
    "l": 0.47942,
    "c": 0.14314,
    "h": 263.4
  },
  "luminance": 0.1065
}

Semantic roles & 50–950 ramp

primary
#3158AD
secondary
#C3AB77
accent
#B049DF
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #3158AD

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

Preview Lab → · Contrast checker → · Palette generator →

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