#3157AA#3157AA

#3157AA is a mid, vivid blue. Relative luminance 0.104; OKLCH L 47.5% C 0.140 H 263.5°. Best body text is #FFFFFF at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#3157AA
RGBrgb(49, 87, 170)
HSLhsl(221, 55%, 43%)
HSVhsv(221, 71%, 67%)
CMYKcmyk(71.2%, 48.8%, 0%, 33.3%)
CIE-LABlab(38.50, 15.42, -48.55)
CIE-LCHlch(38.50, 50.94, 287.62°)
OKLaboklab(47.51% -0.0159 -0.1393)
OKLCHoklch(47.51% 0.14 263.5)
XYZxyz(11.9279, 10.3704, 39.3955)
Luminance0.1037 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3157AA #AA8431
analogous
#3193AA #3157AA #4731AA
triadic
#3157AA #AA3157 #57AA31
tetradic
#3157AA #AA3193 #AA8431 #31AA47
square
#3157AA #AA3193 #AA8431 #31AA47
split-complementary
#3157AA #AA4731 #93AA31
monochromatic
#16264B #233F7A #3157AA #4D74CC #7C99D9

Accessibility & contrast

On white

6.83
#3157AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#3157AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3157AA
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3157AA#FFFFFF#000000##FFFFFF
##3157AA1.006.833.076.83
#FFFFFF6.831.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2961AD
Deuteranopia (green-blind)
#0655A8
Tritanopia (blue-blind)
#006B78
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #3157aa;
/* rgb */ color: rgb(49, 87, 170);
/* oklch */ color: oklch(47.5% 0.140 263.5);
Tailwind
colors: {
  custom: {
    50: '#7885c4',
    500: '#3157aa',
    950: '#000000',
  },
}
SCSS
$custom: #3157aa;
$custom-light: #7885c4;
$custom-dark: #000000;
JSON
{
  "hex": "#3157aa",
  "rgb": {
    "r": 49,
    "g": 87,
    "b": 170
  },
  "hsl": {
    "h": 221.157,
    "s": 55.251,
    "l": 42.941
  },
  "oklch": {
    "l": 0.4751,
    "c": 0.14017,
    "h": 263.5
  },
  "luminance": 0.10372
}

Semantic roles & 50–950 ramp

primary
#3157AA
secondary
#C2AA75
accent
#B049DF
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #3157AA

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

Preview Lab → · Contrast checker → · Palette generator →

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