#3158CA#3158CA

#3158CA is a mid, vivid blue. Relative luminance 0.119; OKLCH L 50.2% C 0.183 H 265.7°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#3158CA
RGBrgb(49, 88, 202)
HSLhsl(225, 61%, 49%)
HSVhsv(225, 76%, 79%)
CMYKcmyk(75.7%, 56.4%, 0%, 20.8%)
CIE-LABlab(41.05, 26.76, -63.16)
CIE-LCHlch(41.05, 68.59, 292.96°)
OKLaboklab(50.16% -0.0136 -0.1822)
OKLCHoklch(50.16% 0.183 265.7)
XYZxyz(15.4133, 11.8950, 57.3493)
Luminance0.1190 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3158CA #CAA331
analogous
#31A5CA #3158CA #5731CA
triadic
#3158CA #CA3158 #58CA31
tetradic
#3158CA #CA31A5 #CAA331 #31CA57
square
#3158CA #CA31A5 #CAA331 #31CA57
split-complementary
#3158CA #CA5731 #A5CA31
monochromatic
#192D67 #254399 #3158CA #607FD8 #91A6E4

Accessibility & contrast

On white

6.21
#3158CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#3158CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3158CA
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3158CA#FFFFFF#000000##FFFFFF
##3158CA1.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CE
Deuteranopia (green-blind)
#005AC8
Tritanopia (blue-blind)
#007488
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #3158ca;
/* rgb */ color: rgb(49, 88, 202);
/* oklch */ color: oklch(50.2% 0.183 265.7);
Tailwind
colors: {
  custom: {
    50: '#7f86db',
    500: '#3158ca',
    950: '#000000',
  },
}
SCSS
$custom: #3158ca;
$custom-light: #7f86db;
$custom-dark: #000000;
JSON
{
  "hex": "#3158ca",
  "rgb": {
    "r": 49,
    "g": 88,
    "b": 202
  },
  "hsl": {
    "h": 224.706,
    "s": 60.956,
    "l": 49.216
  },
  "oklch": {
    "l": 0.50164,
    "c": 0.18274,
    "h": 265.7
  },
  "luminance": 0.11897
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3158CA

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

Preview Lab → · Contrast checker → · Palette generator →

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