#3158B3#3158B3

#3158B3 is a mid, vivid blue. Relative luminance 0.109; OKLCH L 48.4% C 0.151 H 264.1°. Best body text is #FFFFFF at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#3158B3
RGBrgb(49, 88, 179)
HSLhsl(222, 57%, 45%)
HSVhsv(222, 73%, 70%)
CMYKcmyk(72.6%, 50.8%, 0%, 29.8%)
CIE-LABlab(39.39, 18.15, -52.44)
CIE-LCHlch(39.39, 55.49, 289.09°)
OKLaboklab(48.38% -0.0156 -0.1507)
OKLCHoklch(48.38% 0.151 264.1)
XYZxyz(12.8902, 10.8857, 44.0609)
Luminance0.1089 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3158B3 #B38C31
analogous
#3199B3 #3158B3 #4B31B3
triadic
#3158B3 #B33158 #58B331
tetradic
#3158B3 #B33199 #B38C31 #31B34B
square
#3158B3 #B33199 #B38C31 #31B34B
split-complementary
#3158B3 #B34B31 #99B331
monochromatic
#172953 #244083 #3158B3 #5277D0 #829DDD

Accessibility & contrast

On white

6.61
#3158B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#3158B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3158B3
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3158B3#FFFFFF#000000##FFFFFF
##3158B31.006.613.186.61
#FFFFFF6.611.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2163B6
Deuteranopia (green-blind)
#0057B1
Tritanopia (blue-blind)
#006E7D
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #3158b3;
/* rgb */ color: rgb(49, 88, 179);
/* oklch */ color: oklch(48.4% 0.151 264.1);
Tailwind
colors: {
  custom: {
    50: '#7a86ca',
    500: '#3158b3',
    950: '#000000',
  },
}
SCSS
$custom: #3158b3;
$custom-light: #7a86ca;
$custom-dark: #000000;
JSON
{
  "hex": "#3158b3",
  "rgb": {
    "r": 49,
    "g": 88,
    "b": 179
  },
  "hsl": {
    "h": 222,
    "s": 57.018,
    "l": 44.706
  },
  "oklch": {
    "l": 0.48382,
    "c": 0.15149,
    "h": 264.1
  },
  "luminance": 0.10887
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3158B3

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

Preview Lab → · Contrast checker → · Palette generator →

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