#3158AC#3158AC

#3158AC is a mid, vivid blue. Relative luminance 0.106; OKLCH L 47.9% C 0.142 H 263.3°. Best body text is #FFFFFF at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#3158AC
RGBrgb(49, 88, 172)
HSLhsl(221, 56%, 43%)
HSVhsv(221, 72%, 67%)
CMYKcmyk(71.5%, 48.8%, 0%, 32.5%)
CIE-LABlab(38.92, 15.52, -49.07)
CIE-LCHlch(38.92, 51.46, 287.55°)
OKLaboklab(47.87% -0.0165 -0.1408)
OKLCHoklch(47.87% 0.142 263.3)
XYZxyz(12.2001, 10.6097, 40.4266)
Luminance0.1061 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3158AC #AC8531
analogous
#3195AC #3158AC #4831AC
triadic
#3158AC #AC3158 #58AC31
tetradic
#3158AC #AC3195 #AC8531 #31AC48
square
#3158AC #AC3195 #AC8531 #31AC48
split-complementary
#3158AC #AC4831 #95AC31
monochromatic
#16274D #23407C #3158AC #4E76CC #7D9BDA

Accessibility & contrast

On white

6.73
#3158AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#3158AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3158AC
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3158AC#FFFFFF#000000##FFFFFF
##3158AC1.006.733.126.73
#FFFFFF6.731.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A62AF
Deuteranopia (green-blind)
#0456AA
Tritanopia (blue-blind)
#006C7A
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #3158ac;
/* rgb */ color: rgb(49, 88, 172);
/* oklch */ color: oklch(47.9% 0.142 263.3);
Tailwind
colors: {
  custom: {
    50: '#7986c5',
    500: '#3158ac',
    950: '#000000',
  },
}
SCSS
$custom: #3158ac;
$custom-light: #7986c5;
$custom-dark: #000000;
JSON
{
  "hex": "#3158ac",
  "rgb": {
    "r": 49,
    "g": 88,
    "b": 172
  },
  "hsl": {
    "h": 220.976,
    "s": 55.656,
    "l": 43.333
  },
  "oklch": {
    "l": 0.4787,
    "c": 0.14173,
    "h": 263.3
  },
  "luminance": 0.10611
}

Semantic roles & 50–950 ramp

primary
#3158AC
secondary
#C3AA76
accent
#AF49DF
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #3158AC

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

Preview Lab → · Contrast checker → · Palette generator →

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