#3158B8#3158B8

#3158B8 is a mid, vivid blue. Relative luminance 0.111; OKLCH L 48.8% C 0.158 H 264.6°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#3158B8
RGBrgb(49, 88, 184)
HSLhsl(223, 58%, 46%)
HSVhsv(223, 73%, 72%)
CMYKcmyk(73.4%, 52.2%, 0%, 27.8%)
CIE-LABlab(39.73, 20.03, -54.81)
CIE-LCHlch(39.73, 58.36, 290.07°)
OKLaboklab(48.76% -0.015 -0.1577)
OKLCHoklch(48.76% 0.158 264.6)
XYZxyz(13.4050, 11.0917, 46.7725)
Luminance0.1109 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3158B8 #B89131
analogous
#319BB8 #3158B8 #4E31B8
triadic
#3158B8 #B83158 #58B831
tetradic
#3158B8 #B8319B #B89131 #31B84E
square
#3158B8 #B8319B #B89131 #31B84E
split-complementary
#3158B8 #B84E31 #9BB831
monochromatic
#172A57 #244188 #3158B8 #5579D2 #859FDE

Accessibility & contrast

On white

6.52
#3158B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#3158B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3158B8
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3158B8#FFFFFF#000000##FFFFFF
##3158B81.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1864BB
Deuteranopia (green-blind)
#0058B6
Tritanopia (blue-blind)
#006F7F
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #3158b8;
/* rgb */ color: rgb(49, 88, 184);
/* oklch */ color: oklch(48.8% 0.158 264.6);
Tailwind
colors: {
  custom: {
    50: '#7b86ce',
    500: '#3158b8',
    950: '#000000',
  },
}
SCSS
$custom: #3158b8;
$custom-light: #7b86ce;
$custom-dark: #000000;
JSON
{
  "hex": "#3158b8",
  "rgb": {
    "r": 49,
    "g": 88,
    "b": 184
  },
  "hsl": {
    "h": 222.667,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.48756,
    "c": 0.15839,
    "h": 264.6
  },
  "luminance": 0.11093
}

Semantic roles & 50–950 ramp

primary
#3158B8
secondary
#C8B27D
accent
#B547E1
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #3158B8

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

Preview Lab → · Contrast checker → · Palette generator →

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