#3157B4#3157B4

#3157B4 is a mid, vivid blue. Relative luminance 0.108; OKLCH L 48.2% C 0.154 H 264.6°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#3157B4
RGBrgb(49, 87, 180)
HSLhsl(223, 57%, 45%)
HSVhsv(223, 73%, 71%)
CMYKcmyk(72.8%, 51.7%, 0%, 29.4%)
CIE-LABlab(39.18, 19.18, -53.36)
CIE-LCHlch(39.18, 56.70, 289.77°)
OKLaboklab(48.25% -0.0146 -0.1534)
OKLCHoklch(48.25% 0.154 264.6)
XYZxyz(12.9101, 10.7633, 44.5683)
Luminance0.1076 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3157B4 #B48E31
analogous
#3199B4 #3157B4 #4C31B4
triadic
#3157B4 #B43157 #57B431
tetradic
#3157B4 #B43199 #B48E31 #31B44C
square
#3157B4 #B43199 #B48E31 #31B44C
split-complementary
#3157B4 #B44C31 #99B431
monochromatic
#172854 #244084 #3157B4 #5277D0 #829DDD

Accessibility & contrast

On white

6.66
#3157B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#3157B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3157B4#FFFFFF#000000##FFFFFF
##3157B41.006.663.156.66
#FFFFFF6.661.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C63B7
Deuteranopia (green-blind)
#0057B2
Tritanopia (blue-blind)
#006D7D
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #3157b4;
/* rgb */ color: rgb(49, 87, 180);
/* oklch */ color: oklch(48.2% 0.154 264.6);
Tailwind
colors: {
  custom: {
    50: '#7a85cb',
    500: '#3157b4',
    950: '#000000',
  },
}
SCSS
$custom: #3157b4;
$custom-light: #7a85cb;
$custom-dark: #000000;
JSON
{
  "hex": "#3157b4",
  "rgb": {
    "r": 49,
    "g": 87,
    "b": 180
  },
  "hsl": {
    "h": 222.595,
    "s": 57.205,
    "l": 44.902
  },
  "oklch": {
    "l": 0.48245,
    "c": 0.15413,
    "h": 264.6
  },
  "luminance": 0.10765
}

Semantic roles & 50–950 ramp

primary
#3157B4
secondary
#C6B07B
accent
#B447E0
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #3157B4

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

Preview Lab → · Contrast checker → · Palette generator →

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