#3158AF#3158AF

#3158AF is a mid, vivid blue. Relative luminance 0.107; OKLCH L 48.1% C 0.146 H 263.7°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#3158AF
RGBrgb(49, 88, 175)
HSLhsl(221, 56%, 44%)
HSVhsv(221, 72%, 69%)
CMYKcmyk(72%, 49.7%, 0%, 31.4%)
CIE-LABlab(39.12, 16.65, -50.52)
CIE-LCHlch(39.12, 53.19, 288.24°)
OKLaboklab(48.09% -0.0161 -0.145)
OKLCHoklch(48.09% 0.146 263.7)
XYZxyz(12.4915, 10.7262, 41.9612)
Luminance0.1073 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3158AF #AF8831
analogous
#3197AF #3158AF #4931AF
triadic
#3158AF #AF3158 #58AF31
tetradic
#3158AF #AF3197 #AF8831 #31AF49
square
#3158AF #AF3197 #AF8831 #31AF49
split-complementary
#3158AF #AF4931 #97AF31
monochromatic
#16284F #24407F #3158AF #4F77CE #7F9CDB

Accessibility & contrast

On white

6.68
#3158AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#3158AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3158AF
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3158AF#FFFFFF#000000##FFFFFF
##3158AF1.006.683.156.68
#FFFFFF6.681.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2662B2
Deuteranopia (green-blind)
#0057AD
Tritanopia (blue-blind)
#006D7B
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #3158af;
/* rgb */ color: rgb(49, 88, 175);
/* oklch */ color: oklch(48.1% 0.146 263.7);
Tailwind
colors: {
  custom: {
    50: '#7986c7',
    500: '#3158af',
    950: '#000000',
  },
}
SCSS
$custom: #3158af;
$custom-light: #7986c7;
$custom-dark: #000000;
JSON
{
  "hex": "#3158af",
  "rgb": {
    "r": 49,
    "g": 88,
    "b": 175
  },
  "hsl": {
    "h": 221.429,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.48088,
    "c": 0.14593,
    "h": 263.7
  },
  "luminance": 0.10728
}

Semantic roles & 50–950 ramp

primary
#3158AF
secondary
#C4AC78
accent
#B148E0
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #3158AF

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

Preview Lab → · Contrast checker → · Palette generator →

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