#3158B2#3158B2

#3158B2 is a mid, vivid blue. Relative luminance 0.108; OKLCH L 48.3% C 0.150 H 264.0°. Best body text is #FFFFFF at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#3158B2
RGBrgb(49, 88, 178)
HSLhsl(222, 57%, 45%)
HSVhsv(222, 72%, 70%)
CMYKcmyk(72.5%, 50.6%, 0%, 30.2%)
CIE-LABlab(39.32, 17.77, -51.96)
CIE-LCHlch(39.32, 54.91, 288.88°)
OKLaboklab(48.31% -0.0157 -0.1493)
OKLCHoklch(48.31% 0.15 264)
XYZxyz(12.7894, 10.8454, 43.5302)
Luminance0.1085 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3158B2 #B28B31
analogous
#3199B2 #3158B2 #4A31B2
triadic
#3158B2 #B23158 #58B231
tetradic
#3158B2 #B23199 #B28B31 #31B24A
square
#3158B2 #B23199 #B28B31 #31B24A
split-complementary
#3158B2 #B24A31 #99B231
monochromatic
#172952 #244082 #3158B2 #5177CF #819DDC

Accessibility & contrast

On white

6.63
#3158B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#3158B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3158B2
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3158B2#FFFFFF#000000##FFFFFF
##3158B21.006.633.176.63
#FFFFFF6.631.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2263B5
Deuteranopia (green-blind)
#0057B0
Tritanopia (blue-blind)
#006D7C
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #3158b2;
/* rgb */ color: rgb(49, 88, 178);
/* oklch */ color: oklch(48.3% 0.150 264.0);
Tailwind
colors: {
  custom: {
    50: '#7a86ca',
    500: '#3158b2',
    950: '#000000',
  },
}
SCSS
$custom: #3158b2;
$custom-light: #7a86ca;
$custom-dark: #000000;
JSON
{
  "hex": "#3158b2",
  "rgb": {
    "r": 49,
    "g": 88,
    "b": 178
  },
  "hsl": {
    "h": 221.86,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.48308,
    "c": 0.1501,
    "h": 264
  },
  "luminance": 0.10847
}

Semantic roles & 50–950 ramp

primary
#3158B2
secondary
#C5AE79
accent
#B248E0
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #3158B2

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

Preview Lab → · Contrast checker → · Palette generator →

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