#3158B7#3158B7

#3158B7 is a mid, vivid blue. Relative luminance 0.111; OKLCH L 48.7% C 0.157 H 264.5°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#3158B7
RGBrgb(49, 88, 183)
HSLhsl(223, 58%, 45%)
HSVhsv(223, 73%, 72%)
CMYKcmyk(73.2%, 51.9%, 0%, 28.2%)
CIE-LABlab(39.66, 19.65, -54.34)
CIE-LCHlch(39.66, 57.78, 289.88°)
OKLaboklab(48.68% -0.0151 -0.1563)
OKLCHoklch(48.68% 0.157 264.5)
XYZxyz(13.3006, 11.0499, 46.2224)
Luminance0.1105 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3158B7 #B79031
analogous
#319BB7 #3158B7 #4D31B7
triadic
#3158B7 #B73158 #58B731
tetradic
#3158B7 #B7319B #B79031 #31B74D
square
#3158B7 #B7319B #B79031 #31B74D
split-complementary
#3158B7 #B74D31 #9BB731
monochromatic
#172A56 #244187 #3158B7 #5478D1 #849EDE

Accessibility & contrast

On white

6.54
#3158B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#3158B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3158B7
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3158B7#FFFFFF#000000##FFFFFF
##3158B71.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A64BA
Deuteranopia (green-blind)
#0058B5
Tritanopia (blue-blind)
#006F7F
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #3158b7;
/* rgb */ color: rgb(49, 88, 183);
/* oklch */ color: oklch(48.7% 0.157 264.5);
Tailwind
colors: {
  custom: {
    50: '#7b86cd',
    500: '#3158b7',
    950: '#000000',
  },
}
SCSS
$custom: #3158b7;
$custom-light: #7b86cd;
$custom-dark: #000000;
JSON
{
  "hex": "#3158b7",
  "rgb": {
    "r": 49,
    "g": 88,
    "b": 183
  },
  "hsl": {
    "h": 222.537,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.48681,
    "c": 0.15702,
    "h": 264.5
  },
  "luminance": 0.11051
}

Semantic roles & 50–950 ramp

primary
#3158B7
secondary
#C8B27C
accent
#B447E1
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #3158B7

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

Preview Lab → · Contrast checker → · Palette generator →

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