#3157C3#3157C3

#3157C3 is a mid, vivid blue. Relative luminance 0.114; OKLCH L 49.4% C 0.175 H 265.6°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#3157C3
RGBrgb(49, 87, 195)
HSLhsl(224, 60%, 48%)
HSVhsv(224, 75%, 76%)
CMYKcmyk(74.9%, 55.4%, 0%, 23.5%)
CIE-LABlab(40.26, 24.80, -60.38)
CIE-LCHlch(40.26, 65.28, 292.33°)
OKLaboklab(49.41% -0.0133 -0.1741)
OKLCHoklch(49.41% 0.175 265.6)
XYZxyz(14.5217, 11.4079, 53.0558)
Luminance0.1141 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3157C3 #C39D31
analogous
#31A0C3 #3157C3 #5431C3
triadic
#3157C3 #C33157 #57C331
tetradic
#3157C3 #C331A0 #C39D31 #31C354
square
#3157C3 #C331A0 #C39D31 #31C354
split-complementary
#3157C3 #C35431 #A0C331
monochromatic
#182B61 #254192 #3157C3 #5B7BD6 #8CA3E2

Accessibility & contrast

On white

6.40
#3157C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#3157C3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3157C3#FFFFFF#000000##FFFFFF
##3157C31.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066C7
Deuteranopia (green-blind)
#0058C1
Tritanopia (blue-blind)
#007284
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #3157c3;
/* rgb */ color: rgb(49, 87, 195);
/* oklch */ color: oklch(49.4% 0.175 265.6);
Tailwind
colors: {
  custom: {
    50: '#7e85d6',
    500: '#3157c3',
    950: '#000000',
  },
}
SCSS
$custom: #3157c3;
$custom-light: #7e85d6;
$custom-dark: #000000;
JSON
{
  "hex": "#3157c3",
  "rgb": {
    "r": 49,
    "g": 87,
    "b": 195
  },
  "hsl": {
    "h": 224.384,
    "s": 59.836,
    "l": 47.843
  },
  "oklch": {
    "l": 0.49405,
    "c": 0.1746,
    "h": 265.6
  },
  "luminance": 0.11409
}

Semantic roles & 50–950 ramp

primary
#3157C3
secondary
#CCB983
accent
#BA45E3
background
#F8F8FD
surface
#EFEFFA
border
#CACAD3
text
#0B0B14
muted
#7C7C83

Preview Lab

Preview with #3157C3

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

Preview Lab → · Contrast checker → · Palette generator →

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