#3157C8#3157C8

#3157C8 is a mid, vivid blue. Relative luminance 0.116; OKLCH L 49.8% C 0.181 H 265.9°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#3157C8
RGBrgb(49, 87, 200)
HSLhsl(225, 61%, 49%)
HSVhsv(225, 76%, 78%)
CMYKcmyk(75.5%, 56.5%, 0%, 21.6%)
CIE-LABlab(40.63, 26.67, -62.67)
CIE-LCHlch(40.63, 68.11, 293.05°)
OKLaboklab(49.81% -0.013 -0.1808)
OKLCHoklch(49.81% 0.181 265.9)
XYZxyz(15.0965, 11.6378, 56.0831)
Luminance0.1164 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3157C8 #C8A231
analogous
#31A3C8 #3157C8 #5731C8
triadic
#3157C8 #C83157 #57C831
tetradic
#3157C8 #C831A3 #C8A231 #31C857
square
#3157C8 #C831A3 #C8A231 #31C857
split-complementary
#3157C8 #C85731 #A3C831
monochromatic
#192C66 #254297 #3157C8 #5F7DD8 #90A5E4

Accessibility & contrast

On white

6.31
#3157C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#3157C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3157C8#FFFFFF#000000##FFFFFF
##3157C81.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CC
Deuteranopia (green-blind)
#0059C6
Tritanopia (blue-blind)
#007387
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #3157c8;
/* rgb */ color: rgb(49, 87, 200);
/* oklch */ color: oklch(49.8% 0.181 265.9);
Tailwind
colors: {
  custom: {
    50: '#7f85da',
    500: '#3157c8',
    950: '#000000',
  },
}
SCSS
$custom: #3157c8;
$custom-light: #7f85da;
$custom-dark: #000000;
JSON
{
  "hex": "#3157c8",
  "rgb": {
    "r": 49,
    "g": 87,
    "b": 200
  },
  "hsl": {
    "h": 224.901,
    "s": 60.643,
    "l": 48.824
  },
  "oklch": {
    "l": 0.49805,
    "c": 0.18129,
    "h": 265.9
  },
  "luminance": 0.11639
}

Semantic roles & 50–950 ramp

primary
#3157C8
secondary
#CEBC86
accent
#BC44E4
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #3157C8

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

Preview Lab → · Contrast checker → · Palette generator →

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