#3158BC#3158BC

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

Color values

HEX#3158BC
RGBrgb(49, 88, 188)
HSLhsl(223, 59%, 46%)
HSVhsv(223, 74%, 74%)
CMYKcmyk(73.9%, 53.2%, 0%, 26.3%)
CIE-LABlab(40.02, 21.53, -56.69)
CIE-LCHlch(40.02, 60.64, 290.79°)
OKLaboklab(49.06% -0.0146 -0.1632)
OKLCHoklch(49.06% 0.164 264.9)
XYZxyz(13.8302, 11.2618, 49.0121)
Luminance0.1126 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3158BC #BC9531
analogous
#319EBC #3158BC #4F31BC
triadic
#3158BC #BC3158 #58BC31
tetradic
#3158BC #BC319E #BC9531 #31BC4F
square
#3158BC #BC319E #BC9531 #31BC4F
split-complementary
#3158BC #BC4F31 #9EBC31
monochromatic
#182B5B #24418B #3158BC #577AD3 #88A0E0

Accessibility & contrast

On white

6.46
#3158BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#3158BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3158BC
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3158BC#FFFFFF#000000##FFFFFF
##3158BC1.006.463.256.46
#FFFFFF6.461.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E65C0
Deuteranopia (green-blind)
#0058BA
Tritanopia (blue-blind)
#007081
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #3158bc;
/* rgb */ color: rgb(49, 88, 188);
/* oklch */ color: oklch(49.1% 0.164 264.9);
Tailwind
colors: {
  custom: {
    50: '#7c86d1',
    500: '#3158bc',
    950: '#000000',
  },
}
SCSS
$custom: #3158bc;
$custom-light: #7c86d1;
$custom-dark: #000000;
JSON
{
  "hex": "#3158bc",
  "rgb": {
    "r": 49,
    "g": 88,
    "b": 188
  },
  "hsl": {
    "h": 223.165,
    "s": 58.65,
    "l": 46.471
  },
  "oklch": {
    "l": 0.49061,
    "c": 0.16388,
    "h": 264.9
  },
  "luminance": 0.11263
}

Semantic roles & 50–950 ramp

primary
#3158BC
secondary
#CAB57F
accent
#B646E2
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #3158BC

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

Preview Lab → · Contrast checker → · Palette generator →

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