#3158AA#3158AA

#3158AA is a mid, vivid blue. Relative luminance 0.105; OKLCH L 47.7% C 0.139 H 263.1°. Best body text is #FFFFFF at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#3158AA
RGBrgb(49, 88, 170)
HSLhsl(221, 55%, 43%)
HSVhsv(221, 71%, 67%)
CMYKcmyk(71.2%, 48.2%, 0%, 33.3%)
CIE-LABlab(38.78, 14.76, -48.09)
CIE-LCHlch(38.78, 50.31, 287.07°)
OKLaboklab(47.73% -0.0168 -0.1379)
OKLCHoklch(47.73% 0.139 263.1)
XYZxyz(12.0095, 10.5334, 39.4227)
Luminance0.1053 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3158AA #AA8331
analogous
#3194AA #3158AA #4631AA
triadic
#3158AA #AA3158 #58AA31
tetradic
#3158AA #AA3194 #AA8331 #31AA46
square
#3158AA #AA3194 #AA8331 #31AA46
split-complementary
#3158AA #AA4631 #94AA31
monochromatic
#16274B #233F7A #3158AA #4D76CC #7C9AD9

Accessibility & contrast

On white

6.76
#3158AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#3158AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3158AA#FFFFFF#000000##FFFFFF
##3158AA1.006.763.116.76
#FFFFFF6.761.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C61AD
Deuteranopia (green-blind)
#0C56A8
Tritanopia (blue-blind)
#006B79
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #3158aa;
/* rgb */ color: rgb(49, 88, 170);
/* oklch */ color: oklch(47.7% 0.139 263.1);
Tailwind
colors: {
  custom: {
    50: '#7886c4',
    500: '#3158aa',
    950: '#000000',
  },
}
SCSS
$custom: #3158aa;
$custom-light: #7886c4;
$custom-dark: #000000;
JSON
{
  "hex": "#3158aa",
  "rgb": {
    "r": 49,
    "g": 88,
    "b": 170
  },
  "hsl": {
    "h": 220.661,
    "s": 55.251,
    "l": 42.941
  },
  "oklch": {
    "l": 0.47727,
    "c": 0.13893,
    "h": 263.1
  },
  "luminance": 0.10535
}

Semantic roles & 50–950 ramp

primary
#3158AA
secondary
#C2A975
accent
#AE49DF
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #3158AA

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

Preview Lab → · Contrast checker → · Palette generator →

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