#3158BF#3158BF

#3158BF is a mid, vivid blue. Relative luminance 0.114; OKLCH L 49.3% C 0.168 H 265.1°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#3158BF
RGBrgb(49, 88, 191)
HSLhsl(224, 59%, 47%)
HSVhsv(224, 74%, 75%)
CMYKcmyk(74.3%, 53.9%, 0%, 25.1%)
CIE-LABlab(40.23, 22.65, -58.10)
CIE-LCHlch(40.23, 62.36, 291.30°)
OKLaboklab(49.29% -0.0144 -0.1673)
OKLCHoklch(49.29% 0.168 265.1)
XYZxyz(14.1570, 11.3925, 50.7330)
Luminance0.1139 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3158BF #BF9831
analogous
#319FBF #3158BF #5131BF
triadic
#3158BF #BF3158 #58BF31
tetradic
#3158BF #BF319F #BF9831 #31BF51
square
#3158BF #BF319F #BF9831 #31BF51
split-complementary
#3158BF #BF5131 #9FBF31
monochromatic
#182B5E #25428E #3158BF #597BD4 #8AA2E1

Accessibility & contrast

On white

6.40
#3158BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#3158BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3158BF
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3158BF#FFFFFF#000000##FFFFFF
##3158BF1.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0266C3
Deuteranopia (green-blind)
#0059BD
Tritanopia (blue-blind)
#007183
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #3158bf;
/* rgb */ color: rgb(49, 88, 191);
/* oklch */ color: oklch(49.3% 0.168 265.1);
Tailwind
colors: {
  custom: {
    50: '#7d86d3',
    500: '#3158bf',
    950: '#000000',
  },
}
SCSS
$custom: #3158bf;
$custom-light: #7d86d3;
$custom-dark: #000000;
JSON
{
  "hex": "#3158bf",
  "rgb": {
    "r": 49,
    "g": 88,
    "b": 191
  },
  "hsl": {
    "h": 223.521,
    "s": 59.167,
    "l": 47.059
  },
  "oklch": {
    "l": 0.49293,
    "c": 0.16796,
    "h": 265.1
  },
  "luminance": 0.11394
}

Semantic roles & 50–950 ramp

primary
#3158BF
secondary
#CBB781
accent
#B745E2
background
#F8F8FD
surface
#EFEFFA
border
#CACAD3
text
#0B0B14
muted
#7C7C83

Preview Lab

Preview with #3158BF

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

Preview Lab → · Contrast checker → · Palette generator →

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