#3159A2#3159A2

#3159A2 is a mid, vivid blue. Relative luminance 0.104; OKLCH L 47.4% C 0.126 H 261.3°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#3159A2
RGBrgb(49, 89, 162)
HSLhsl(219, 54%, 41%)
HSVhsv(219, 70%, 64%)
CMYKcmyk(69.8%, 45.1%, 0%, 36.5%)
CIE-LABlab(38.56, 11.11, -43.69)
CIE-LCHlch(38.56, 45.08, 284.26°)
OKLaboklab(47.39% -0.0191 -0.125)
OKLCHoklch(47.39% 0.126 261.3)
XYZxyz(11.3583, 10.4052, 35.5852)
Luminance0.1041 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3159A2 #A27A31
analogous
#3192A2 #3159A2 #4231A2
triadic
#3159A2 #A23159 #59A231
tetradic
#3159A2 #A23192 #A27A31 #31A242
square
#3159A2 #A23192 #A27A31 #31A242
split-complementary
#3159A2 #A24231 #92A231
monochromatic
#152544 #233F73 #3159A2 #4876C8 #7799D6

Accessibility & contrast

On white

6.82
#3159A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#3159A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3159A2
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3159A2#FFFFFF#000000##FFFFFF
##3159A21.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3560A5
Deuteranopia (green-blind)
#2156A1
Tritanopia (blue-blind)
#006A75
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #3159a2;
/* rgb */ color: rgb(49, 89, 162);
/* oklch */ color: oklch(47.4% 0.126 261.3);
Tailwind
colors: {
  custom: {
    50: '#7787be',
    500: '#3159a2',
    950: '#000000',
  },
}
SCSS
$custom: #3159a2;
$custom-light: #7787be;
$custom-dark: #000000;
JSON
{
  "hex": "#3159a2",
  "rgb": {
    "r": 49,
    "g": 89,
    "b": 162
  },
  "hsl": {
    "h": 218.761,
    "s": 53.555,
    "l": 41.373
  },
  "oklch": {
    "l": 0.47391,
    "c": 0.12641,
    "h": 261.3
  },
  "luminance": 0.10406
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3159A2

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

Preview Lab → · Contrast checker → · Palette generator →

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