#3158B4#3158B4

#3158B4 is a mid, vivid blue. Relative luminance 0.109; OKLCH L 48.5% C 0.153 H 264.2°. Best body text is #FFFFFF at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#3158B4
RGBrgb(49, 88, 180)
HSLhsl(222, 57%, 45%)
HSVhsv(222, 73%, 71%)
CMYKcmyk(72.8%, 51.1%, 0%, 29.4%)
CIE-LABlab(39.46, 18.53, -52.91)
CIE-LCHlch(39.46, 56.06, 289.30°)
OKLaboklab(48.46% -0.0155 -0.1521)
OKLCHoklch(48.46% 0.153 264.2)
XYZxyz(12.9917, 10.9263, 44.5955)
Luminance0.1093 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3158B4 #B48D31
analogous
#319AB4 #3158B4 #4B31B4
triadic
#3158B4 #B43158 #58B431
tetradic
#3158B4 #B4319A #B48D31 #31B44B
square
#3158B4 #B4319A #B48D31 #31B44B
split-complementary
#3158B4 #B44B31 #9AB431
monochromatic
#172954 #244084 #3158B4 #5278D0 #829DDD

Accessibility & contrast

On white

6.59
#3158B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#3158B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3158B4
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3158B4#FFFFFF#000000##FFFFFF
##3158B41.006.593.196.59
#FFFFFF6.591.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F63B7
Deuteranopia (green-blind)
#0057B2
Tritanopia (blue-blind)
#006E7D
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #3158b4;
/* rgb */ color: rgb(49, 88, 180);
/* oklch */ color: oklch(48.5% 0.153 264.2);
Tailwind
colors: {
  custom: {
    50: '#7a86cb',
    500: '#3158b4',
    950: '#000000',
  },
}
SCSS
$custom: #3158b4;
$custom-light: #7a86cb;
$custom-dark: #000000;
JSON
{
  "hex": "#3158b4",
  "rgb": {
    "r": 49,
    "g": 88,
    "b": 180
  },
  "hsl": {
    "h": 222.137,
    "s": 57.205,
    "l": 44.902
  },
  "oklch": {
    "l": 0.48456,
    "c": 0.15287,
    "h": 264.2
  },
  "luminance": 0.10928
}

Semantic roles & 50–950 ramp

primary
#3158B4
secondary
#C6B07B
accent
#B347E0
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #3158B4

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

Preview Lab → · Contrast checker → · Palette generator →

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