#3159BA#3159BA

#3159BA is a mid, vivid blue. Relative luminance 0.113; OKLCH L 49.1% C 0.160 H 264.4°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#3159BA
RGBrgb(49, 89, 186)
HSLhsl(222, 58%, 46%)
HSVhsv(222, 74%, 73%)
CMYKcmyk(73.7%, 52.2%, 0%, 27.1%)
CIE-LABlab(40.15, 20.13, -55.31)
CIE-LCHlch(40.15, 58.86, 290.00°)
OKLaboklab(49.12% -0.0156 -0.1591)
OKLCHoklch(49.12% 0.16 264.4)
XYZxyz(13.6988, 11.3414, 47.9120)
Luminance0.1134 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3159BA #BA9231
analogous
#319DBA #3159BA #4D31BA
triadic
#3159BA #BA3159 #59BA31
tetradic
#3159BA #BA319D #BA9231 #31BA4D
square
#3159BA #BA319D #BA9231 #31BA4D
split-complementary
#3159BA #BA4D31 #9DBA31
monochromatic
#172B59 #24428A #3159BA #567AD2 #86A0DF

Accessibility & contrast

On white

6.42
#3159BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#3159BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3159BA
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3159BA#FFFFFF#000000##FFFFFF
##3159BA1.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1865BD
Deuteranopia (green-blind)
#0059B8
Tritanopia (blue-blind)
#007081
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #3159ba;
/* rgb */ color: rgb(49, 89, 186);
/* oklch */ color: oklch(49.1% 0.160 264.4);
Tailwind
colors: {
  custom: {
    50: '#7c87cf',
    500: '#3159ba',
    950: '#000000',
  },
}
SCSS
$custom: #3159ba;
$custom-light: #7c87cf;
$custom-dark: #000000;
JSON
{
  "hex": "#3159ba",
  "rgb": {
    "r": 49,
    "g": 89,
    "b": 186
  },
  "hsl": {
    "h": 222.482,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.49116,
    "c": 0.15991,
    "h": 264.4
  },
  "luminance": 0.11343
}

Semantic roles & 50–950 ramp

primary
#3159BA
secondary
#C9B37E
accent
#B446E2
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #3159BA

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

Preview Lab → · Contrast checker → · Palette generator →

#3159BA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva