#3158A2#3158A2

#3158A2 is a mid, vivid blue. Relative luminance 0.102; OKLCH L 47.2% C 0.128 H 261.8°. Best body text is #FFFFFF at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#3158A2
RGBrgb(49, 88, 162)
HSLhsl(219, 54%, 41%)
HSVhsv(219, 70%, 64%)
CMYKcmyk(69.8%, 45.7%, 0%, 36.5%)
CIE-LABlab(38.27, 11.76, -44.16)
CIE-LCHlch(38.27, 45.70, 284.91°)
OKLaboklab(47.17% -0.0181 -0.1263)
OKLCHoklch(47.17% 0.128 261.8)
XYZxyz(11.2756, 10.2399, 35.5577)
Luminance0.1024 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3158A2 #A27B31
analogous
#3191A2 #3158A2 #4331A2
triadic
#3158A2 #A23158 #58A231
tetradic
#3158A2 #A23191 #A27B31 #31A243
square
#3158A2 #A23191 #A27B31 #31A243
split-complementary
#3158A2 #A24331 #91A231
monochromatic
#152544 #233E73 #3158A2 #4874C8 #7798D6

Accessibility & contrast

On white

6.89
#3158A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#3158A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3158A2#FFFFFF#000000##FFFFFF
##3158A21.006.893.056.89
#FFFFFF6.891.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3360A5
Deuteranopia (green-blind)
#1E55A0
Tritanopia (blue-blind)
#006975
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #3158a2;
/* rgb */ color: rgb(49, 88, 162);
/* oklch */ color: oklch(47.2% 0.128 261.8);
Tailwind
colors: {
  custom: {
    50: '#7786be',
    500: '#3158a2',
    950: '#000000',
  },
}
SCSS
$custom: #3158a2;
$custom-light: #7786be;
$custom-dark: #000000;
JSON
{
  "hex": "#3158a2",
  "rgb": {
    "r": 49,
    "g": 88,
    "b": 162
  },
  "hsl": {
    "h": 219.292,
    "s": 53.555,
    "l": 41.373
  },
  "oklch": {
    "l": 0.47168,
    "c": 0.12763,
    "h": 261.8
  },
  "luminance": 0.10241
}

Semantic roles & 50–950 ramp

primary
#3158A2
secondary
#BEA371
accent
#AB4BDD
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #3158A2

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

Preview Lab → · Contrast checker → · Palette generator →

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