#3158C2#3158C2

#3158C2 is a mid, vivid blue. Relative luminance 0.115; OKLCH L 49.5% C 0.172 H 265.3°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#3158C2
RGBrgb(49, 88, 194)
HSLhsl(224, 60%, 48%)
HSVhsv(224, 75%, 76%)
CMYKcmyk(74.7%, 54.6%, 0%, 23.9%)
CIE-LABlab(40.45, 23.78, -59.49)
CIE-LCHlch(40.45, 64.06, 291.79°)
OKLaboklab(49.53% -0.0141 -0.1714)
OKLCHoklch(49.53% 0.172 265.3)
XYZxyz(14.4905, 11.5259, 52.4895)
Luminance0.1153 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3158C2 #C29B31
analogous
#31A1C2 #3158C2 #5231C2
triadic
#3158C2 #C23158 #58C231
tetradic
#3158C2 #C231A1 #C29B31 #31C252
square
#3158C2 #C231A1 #C29B31 #31C252
split-complementary
#3158C2 #C25231 #A1C231
monochromatic
#182C60 #254291 #3158C2 #5B7CD6 #8CA3E2

Accessibility & contrast

On white

6.35
#3158C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#3158C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3158C2
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3158C2#FFFFFF#000000##FFFFFF
##3158C21.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066C6
Deuteranopia (green-blind)
#0059C0
Tritanopia (blue-blind)
#007284
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #3158c2;
/* rgb */ color: rgb(49, 88, 194);
/* oklch */ color: oklch(49.5% 0.172 265.3);
Tailwind
colors: {
  custom: {
    50: '#7d86d5',
    500: '#3158c2',
    950: '#000000',
  },
}
SCSS
$custom: #3158c2;
$custom-light: #7d86d5;
$custom-dark: #000000;
JSON
{
  "hex": "#3158c2",
  "rgb": {
    "r": 49,
    "g": 88,
    "b": 194
  },
  "hsl": {
    "h": 223.862,
    "s": 59.671,
    "l": 47.647
  },
  "oklch": {
    "l": 0.49527,
    "c": 0.17202,
    "h": 265.3
  },
  "luminance": 0.11527
}

Semantic roles & 50–950 ramp

primary
#3158C2
secondary
#CCB883
accent
#B845E3
background
#F8F8FD
surface
#EFEFFA
border
#CACAD3
text
#0B0B14
muted
#7C7C83

Preview Lab

Preview with #3158C2

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

Preview Lab → · Contrast checker → · Palette generator →

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