#3158AE#3158AE

#3158AE is a mid, vivid blue. Relative luminance 0.107; OKLCH L 48.0% C 0.145 H 263.6°. Best body text is #FFFFFF at 6.69:1 contrast (WCAG AA passes).

Color values

HEX#3158AE
RGBrgb(49, 88, 174)
HSLhsl(221, 56%, 44%)
HSVhsv(221, 72%, 68%)
CMYKcmyk(71.8%, 49.4%, 0%, 31.8%)
CIE-LABlab(39.05, 16.27, -50.03)
CIE-LCHlch(39.05, 52.61, 288.01°)
OKLaboklab(48.02% -0.0162 -0.1436)
OKLCHoklch(48.02% 0.145 263.6)
XYZxyz(12.3936, 10.6871, 41.4458)
Luminance0.1069 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3158AE #AE8731
analogous
#3196AE #3158AE #4831AE
triadic
#3158AE #AE3158 #58AE31
tetradic
#3158AE #AE3196 #AE8731 #31AE48
square
#3158AE #AE3196 #AE8731 #31AE48
split-complementary
#3158AE #AE4831 #96AE31
monochromatic
#16284E #24407E #3158AE #4F76CD #7F9BDB

Accessibility & contrast

On white

6.69
#3158AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#3158AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3158AE
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3158AE#FFFFFF#000000##FFFFFF
##3158AE1.006.693.146.69
#FFFFFF6.691.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2762B1
Deuteranopia (green-blind)
#0057AC
Tritanopia (blue-blind)
#006C7A
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #3158ae;
/* rgb */ color: rgb(49, 88, 174);
/* oklch */ color: oklch(48.0% 0.145 263.6);
Tailwind
colors: {
  custom: {
    50: '#7986c7',
    500: '#3158ae',
    950: '#000000',
  },
}
SCSS
$custom: #3158ae;
$custom-light: #7986c7;
$custom-dark: #000000;
JSON
{
  "hex": "#3158ae",
  "rgb": {
    "r": 49,
    "g": 88,
    "b": 174
  },
  "hsl": {
    "h": 221.28,
    "s": 56.054,
    "l": 43.725
  },
  "oklch": {
    "l": 0.48015,
    "c": 0.14453,
    "h": 263.6
  },
  "luminance": 0.10688
}

Semantic roles & 50–950 ramp

primary
#3158AE
secondary
#C4AC77
accent
#B048DF
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #3158AE

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

Preview Lab → · Contrast checker → · Palette generator →

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