#3159B4#3159B4

#3159B4 is a mid, vivid blue. Relative luminance 0.111; OKLCH L 48.7% C 0.152 H 263.8°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#3159B4
RGBrgb(49, 89, 180)
HSLhsl(222, 57%, 45%)
HSVhsv(222, 73%, 71%)
CMYKcmyk(72.8%, 50.6%, 0%, 29.4%)
CIE-LABlab(39.73, 17.87, -52.46)
CIE-LCHlch(39.73, 55.42, 288.81°)
OKLaboklab(48.67% -0.0163 -0.1508)
OKLCHoklch(48.67% 0.152 263.8)
XYZxyz(13.0743, 11.0916, 44.6230)
Luminance0.1109 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3159B4 #B48C31
analogous
#319BB4 #3159B4 #4A31B4
triadic
#3159B4 #B43159 #59B431
tetradic
#3159B4 #B4319B #B48C31 #31B44A
square
#3159B4 #B4319B #B48C31 #31B44A
split-complementary
#3159B4 #B44A31 #9BB431
monochromatic
#172954 #244184 #3159B4 #5279D0 #829EDD

Accessibility & contrast

On white

6.52
#3159B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#3159B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3159B4
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3159B4#FFFFFF#000000##FFFFFF
##3159B41.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2264B7
Deuteranopia (green-blind)
#0058B2
Tritanopia (blue-blind)
#006F7E
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #3159b4;
/* rgb */ color: rgb(49, 89, 180);
/* oklch */ color: oklch(48.7% 0.152 263.8);
Tailwind
colors: {
  custom: {
    50: '#7a87cb',
    500: '#3159b4',
    950: '#000000',
  },
}
SCSS
$custom: #3159b4;
$custom-light: #7a87cb;
$custom-dark: #000000;
JSON
{
  "hex": "#3159b4",
  "rgb": {
    "r": 49,
    "g": 89,
    "b": 180
  },
  "hsl": {
    "h": 221.679,
    "s": 57.205,
    "l": 44.902
  },
  "oklch": {
    "l": 0.48668,
    "c": 0.15164,
    "h": 263.8
  },
  "luminance": 0.11093
}

Semantic roles & 50–950 ramp

primary
#3159B4
secondary
#C6AF7B
accent
#B247E0
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #3159B4

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

Preview Lab → · Contrast checker → · Palette generator →

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