#3157CA#3157CA

#3157CA is a mid, vivid blue. Relative luminance 0.117; OKLCH L 50.0% C 0.184 H 266.0°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#3157CA
RGBrgb(49, 87, 202)
HSLhsl(225, 61%, 49%)
HSVhsv(225, 76%, 79%)
CMYKcmyk(75.7%, 56.9%, 0%, 20.8%)
CIE-LABlab(40.79, 27.41, -63.58)
CIE-LCHlch(40.79, 69.24, 293.32°)
OKLaboklab(49.97% -0.0129 -0.1835)
OKLCHoklch(49.97% 0.184 266)
XYZxyz(15.3317, 11.7319, 57.3221)
Luminance0.1173 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3157CA #CAA431
analogous
#31A4CA #3157CA #5831CA
triadic
#3157CA #CA3157 #57CA31
tetradic
#3157CA #CA31A4 #CAA431 #31CA58
square
#3157CA #CA31A4 #CAA431 #31CA58
split-complementary
#3157CA #CA5831 #A4CA31
monochromatic
#192D67 #254299 #3157CA #607ED8 #91A6E4

Accessibility & contrast

On white

6.27
#3157CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#3157CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3157CA#FFFFFF#000000##FFFFFF
##3157CA1.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CE
Deuteranopia (green-blind)
#0059C8
Tritanopia (blue-blind)
#007488
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #3157ca;
/* rgb */ color: rgb(49, 87, 202);
/* oklch */ color: oklch(50.0% 0.184 266.0);
Tailwind
colors: {
  custom: {
    50: '#7f85db',
    500: '#3157ca',
    950: '#000000',
  },
}
SCSS
$custom: #3157ca;
$custom-light: #7f85db;
$custom-dark: #000000;
JSON
{
  "hex": "#3157ca",
  "rgb": {
    "r": 49,
    "g": 87,
    "b": 202
  },
  "hsl": {
    "h": 225.098,
    "s": 60.956,
    "l": 49.216
  },
  "oklch": {
    "l": 0.49967,
    "c": 0.18395,
    "h": 266
  },
  "luminance": 0.11734
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3157CA

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

Preview Lab → · Contrast checker → · Palette generator →

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