#3158B9#3158B9

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

Color values

HEX#3158B9
RGBrgb(49, 88, 185)
HSLhsl(223, 58%, 46%)
HSVhsv(223, 74%, 73%)
CMYKcmyk(73.5%, 52.4%, 0%, 27.5%)
CIE-LABlab(39.80, 20.40, -55.28)
CIE-LCHlch(39.80, 58.93, 290.26°)
OKLaboklab(48.83% -0.0149 -0.1591)
OKLCHoklch(48.83% 0.16 264.6)
XYZxyz(13.5102, 11.1337, 47.3265)
Luminance0.1114 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3158B9 #B99231
analogous
#319CB9 #3158B9 #4E31B9
triadic
#3158B9 #B93158 #58B931
tetradic
#3158B9 #B9319C #B99231 #31B94E
square
#3158B9 #B9319C #B99231 #31B94E
split-complementary
#3158B9 #B94E31 #9CB931
monochromatic
#172A58 #244189 #3158B9 #5579D2 #869FDF

Accessibility & contrast

On white

6.51
#3158B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#3158B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3158B9
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3158B9#FFFFFF#000000##FFFFFF
##3158B91.006.513.236.51
#FFFFFF6.511.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1664BC
Deuteranopia (green-blind)
#0058B7
Tritanopia (blue-blind)
#006F80
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #3158b9;
/* rgb */ color: rgb(49, 88, 185);
/* oklch */ color: oklch(48.8% 0.160 264.6);
Tailwind
colors: {
  custom: {
    50: '#7b86cf',
    500: '#3158b9',
    950: '#000000',
  },
}
SCSS
$custom: #3158b9;
$custom-light: #7b86cf;
$custom-dark: #000000;
JSON
{
  "hex": "#3158b9",
  "rgb": {
    "r": 49,
    "g": 88,
    "b": 185
  },
  "hsl": {
    "h": 222.794,
    "s": 58.12,
    "l": 45.882
  },
  "oklch": {
    "l": 0.48832,
    "c": 0.15977,
    "h": 264.6
  },
  "luminance": 0.11135
}

Semantic roles & 50–950 ramp

primary
#3158B9
secondary
#C8B37D
accent
#B546E1
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #3158B9

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

Preview Lab → · Contrast checker → · Palette generator →

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