#3158C8#3158C8

#3158C8 is a mid, vivid blue. Relative luminance 0.118; OKLCH L 50.0% C 0.180 H 265.6°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#3158C8
RGBrgb(49, 88, 200)
HSLhsl(225, 61%, 49%)
HSVhsv(225, 76%, 78%)
CMYKcmyk(75.5%, 56%, 0%, 21.6%)
CIE-LABlab(40.90, 26.02, -62.25)
CIE-LCHlch(40.90, 67.46, 292.68°)
OKLaboklab(50% -0.0138 -0.1795)
OKLCHoklch(50% 0.18 265.6)
XYZxyz(15.1780, 11.8009, 56.1103)
Luminance0.1180 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3158C8 #C8A131
analogous
#31A4C8 #3158C8 #5531C8
triadic
#3158C8 #C83158 #58C831
tetradic
#3158C8 #C831A4 #C8A131 #31C855
square
#3158C8 #C831A4 #C8A131 #31C855
split-complementary
#3158C8 #C85531 #A4C831
monochromatic
#192D66 #254297 #3158C8 #5F7ED8 #90A5E4

Accessibility & contrast

On white

6.25
#3158C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#3158C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3158C8
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3158C8#FFFFFF#000000##FFFFFF
##3158C81.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CC
Deuteranopia (green-blind)
#005AC6
Tritanopia (blue-blind)
#007487
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #3158c8;
/* rgb */ color: rgb(49, 88, 200);
/* oklch */ color: oklch(50.0% 0.180 265.6);
Tailwind
colors: {
  custom: {
    50: '#7f86da',
    500: '#3158c8',
    950: '#000000',
  },
}
SCSS
$custom: #3158c8;
$custom-light: #7f86da;
$custom-dark: #000000;
JSON
{
  "hex": "#3158c8",
  "rgb": {
    "r": 49,
    "g": 88,
    "b": 200
  },
  "hsl": {
    "h": 224.503,
    "s": 60.643,
    "l": 48.824
  },
  "oklch": {
    "l": 0.50003,
    "c": 0.18008,
    "h": 265.6
  },
  "luminance": 0.11803
}

Semantic roles & 50–950 ramp

primary
#3158C8
secondary
#CEBC86
accent
#BB44E4
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #3158C8

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

Preview Lab → · Contrast checker → · Palette generator →

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