#3158BD#3158BD

#3158BD is a mid, vivid blue. Relative luminance 0.113; OKLCH L 49.1% C 0.165 H 264.9°. Best body text is #FFFFFF at 6.44:1 contrast (WCAG AA passes).

Color values

HEX#3158BD
RGBrgb(49, 88, 189)
HSLhsl(223, 59%, 47%)
HSVhsv(223, 74%, 74%)
CMYKcmyk(74.1%, 53.4%, 0%, 25.9%)
CIE-LABlab(40.09, 21.91, -57.16)
CIE-LCHlch(40.09, 61.22, 290.97°)
OKLaboklab(49.14% -0.0146 -0.1646)
OKLCHoklch(49.14% 0.165 264.9)
XYZxyz(13.9384, 11.3050, 49.5817)
Luminance0.1131 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3158BD #BD9631
analogous
#319EBD #3158BD #5031BD
triadic
#3158BD #BD3158 #58BD31
tetradic
#3158BD #BD319E #BD9631 #31BD50
square
#3158BD #BD319E #BD9631 #31BD50
split-complementary
#3158BD #BD5031 #9EBD31
monochromatic
#182B5C #24418C #3158BD #587AD4 #88A1E0

Accessibility & contrast

On white

6.44
#3158BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#3158BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3158BD
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3158BD#FFFFFF#000000##FFFFFF
##3158BD1.006.443.266.44
#FFFFFF6.441.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A65C1
Deuteranopia (green-blind)
#0058BB
Tritanopia (blue-blind)
#007082
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #3158bd;
/* rgb */ color: rgb(49, 88, 189);
/* oklch */ color: oklch(49.1% 0.165 264.9);
Tailwind
colors: {
  custom: {
    50: '#7c86d2',
    500: '#3158bd',
    950: '#000000',
  },
}
SCSS
$custom: #3158bd;
$custom-light: #7c86d2;
$custom-dark: #000000;
JSON
{
  "hex": "#3158bd",
  "rgb": {
    "r": 49,
    "g": 88,
    "b": 189
  },
  "hsl": {
    "h": 223.286,
    "s": 58.824,
    "l": 46.667
  },
  "oklch": {
    "l": 0.49138,
    "c": 0.16524,
    "h": 264.9
  },
  "luminance": 0.11307
}

Semantic roles & 50–950 ramp

primary
#3158BD
secondary
#CAB580
accent
#B646E2
background
#F8F8FD
surface
#EFEFFA
border
#CACAD3
text
#0B0B14
muted
#7C7C83

Preview Lab

Preview with #3158BD

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

Preview Lab → · Contrast checker → · Palette generator →

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