#3158CF#3158CF

#3158CF is a mid, vivid blue. Relative luminance 0.121; OKLCH L 50.6% C 0.189 H 265.9°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#3158CF
RGBrgb(49, 88, 207)
HSLhsl(225, 62%, 50%)
HSVhsv(225, 76%, 81%)
CMYKcmyk(76.3%, 57.5%, 0%, 18.8%)
CIE-LABlab(41.43, 28.62, -65.42)
CIE-LCHlch(41.43, 71.41, 293.63°)
OKLaboklab(50.57% -0.0134 -0.1889)
OKLCHoklch(50.57% 0.189 265.9)
XYZxyz(16.0149, 12.1356, 60.5178)
Luminance0.1214 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3158CF #CFA831
analogous
#31A7CF #3158CF #5931CF
triadic
#3158CF #CF3158 #58CF31
tetradic
#3158CF #CF31A7 #CFA831 #31CF59
square
#3158CF #CF31A7 #CFA831 #31CF59
split-complementary
#3158CF #CF5931 #A7CF31
monochromatic
#192E6C #25439E #3158CF #6380DB #94A8E6

Accessibility & contrast

On white

6.13
#3158CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#3158CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3158CF
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3158CF#FFFFFF#000000##FFFFFF
##3158CF1.006.133.436.13
#FFFFFF6.131.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D3
Deuteranopia (green-blind)
#005BCD
Tritanopia (blue-blind)
#00768B
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #3158cf;
/* rgb */ color: rgb(49, 88, 207);
/* oklch */ color: oklch(50.6% 0.189 265.9);
Tailwind
colors: {
  custom: {
    50: '#8086df',
    500: '#3158cf',
    950: '#000000',
  },
}
SCSS
$custom: #3158cf;
$custom-light: #8086df;
$custom-dark: #000000;
JSON
{
  "hex": "#3158cf",
  "rgb": {
    "r": 49,
    "g": 88,
    "b": 207
  },
  "hsl": {
    "h": 225.19,
    "s": 62.205,
    "l": 50.196
  },
  "oklch": {
    "l": 0.50571,
    "c": 0.18935,
    "h": 265.9
  },
  "luminance": 0.12137
}

Semantic roles & 50–950 ramp

primary
#3158CF
secondary
#D1C08B
accent
#BD43E5
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #3158CF

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

Preview Lab → · Contrast checker → · Palette generator →

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