#3158BE#3158BE

#3158BE is a mid, vivid blue. Relative luminance 0.114; OKLCH L 49.2% C 0.167 H 265.0°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#3158BE
RGBrgb(49, 88, 190)
HSLhsl(223, 59%, 47%)
HSVhsv(223, 74%, 75%)
CMYKcmyk(74.2%, 53.7%, 0%, 25.5%)
CIE-LABlab(40.16, 22.28, -57.63)
CIE-LCHlch(40.16, 61.79, 291.14°)
OKLaboklab(49.22% -0.0145 -0.166)
OKLCHoklch(49.22% 0.167 265)
XYZxyz(14.0473, 11.3486, 50.1554)
Luminance0.1135 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3158BE #BE9731
analogous
#319FBE #3158BE #5031BE
triadic
#3158BE #BE3158 #58BE31
tetradic
#3158BE #BE319F #BE9731 #31BE50
square
#3158BE #BE319F #BE9731 #31BE50
split-complementary
#3158BE #BE5031 #9FBE31
monochromatic
#182B5D #24418D #3158BE #587AD4 #89A1E1

Accessibility & contrast

On white

6.42
#3158BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#3158BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3158BE
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3158BE#FFFFFF#000000##FFFFFF
##3158BE1.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0665C2
Deuteranopia (green-blind)
#0058BC
Tritanopia (blue-blind)
#007182
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #3158be;
/* rgb */ color: rgb(49, 88, 190);
/* oklch */ color: oklch(49.2% 0.167 265.0);
Tailwind
colors: {
  custom: {
    50: '#7d86d2',
    500: '#3158be',
    950: '#000000',
  },
}
SCSS
$custom: #3158be;
$custom-light: #7d86d2;
$custom-dark: #000000;
JSON
{
  "hex": "#3158be",
  "rgb": {
    "r": 49,
    "g": 88,
    "b": 190
  },
  "hsl": {
    "h": 223.404,
    "s": 58.996,
    "l": 46.863
  },
  "oklch": {
    "l": 0.49215,
    "c": 0.1666,
    "h": 265
  },
  "luminance": 0.1135
}

Semantic roles & 50–950 ramp

primary
#3158BE
secondary
#CAB680
accent
#B746E2
background
#F8F8FD
surface
#EFEFFA
border
#CACAD3
text
#0B0B14
muted
#7C7C83

Preview Lab

Preview with #3158BE

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

Preview Lab → · Contrast checker → · Palette generator →

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