#3158C0#3158C0

#3158C0 is a mid, vivid blue. Relative luminance 0.114; OKLCH L 49.4% C 0.169 H 265.2°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#3158C0
RGBrgb(49, 88, 192)
HSLhsl(224, 59%, 47%)
HSVhsv(224, 74%, 75%)
CMYKcmyk(74.5%, 54.2%, 0%, 24.7%)
CIE-LABlab(40.31, 23.03, -58.56)
CIE-LCHlch(40.31, 62.93, 291.47°)
OKLaboklab(49.37% -0.0143 -0.1687)
OKLCHoklch(49.37% 0.169 265.2)
XYZxyz(14.2674, 11.4366, 51.3145)
Luminance0.1144 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3158C0 #C09931
analogous
#31A0C0 #3158C0 #5131C0
triadic
#3158C0 #C03158 #58C031
tetradic
#3158C0 #C031A0 #C09931 #31C051
square
#3158C0 #C031A0 #C09931 #31C051
split-complementary
#3158C0 #C05131 #A0C031
monochromatic
#182B5E #25428F #3158C0 #597BD5 #8AA2E1

Accessibility & contrast

On white

6.39
#3158C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#3158C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3158C0
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3158C0#FFFFFF#000000##FFFFFF
##3158C01.006.393.296.39
#FFFFFF6.391.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066C4
Deuteranopia (green-blind)
#0059BE
Tritanopia (blue-blind)
#007183
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #3158c0;
/* rgb */ color: rgb(49, 88, 192);
/* oklch */ color: oklch(49.4% 0.169 265.2);
Tailwind
colors: {
  custom: {
    50: '#7d86d4',
    500: '#3158c0',
    950: '#000000',
  },
}
SCSS
$custom: #3158c0;
$custom-light: #7d86d4;
$custom-dark: #000000;
JSON
{
  "hex": "#3158c0",
  "rgb": {
    "r": 49,
    "g": 88,
    "b": 192
  },
  "hsl": {
    "h": 223.636,
    "s": 59.336,
    "l": 47.255
  },
  "oklch": {
    "l": 0.49371,
    "c": 0.16932,
    "h": 265.2
  },
  "luminance": 0.11438
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3158C0

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

Preview Lab → · Contrast checker → · Palette generator →

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