#3154C1#3154C1

#3154C1 is a mid, vivid blue. Relative luminance 0.108; OKLCH L 48.6% C 0.176 H 266.3°. Best body text is #FFFFFF at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#3154C1
RGBrgb(49, 84, 193)
HSLhsl(225, 60%, 47%)
HSVhsv(225, 75%, 76%)
CMYKcmyk(74.6%, 56.5%, 0%, 24.3%)
CIE-LABlab(39.31, 26.01, -60.76)
CIE-LCHlch(39.31, 66.09, 293.18°)
OKLaboklab(48.65% -0.0112 -0.1752)
OKLCHoklch(48.65% 0.176 266.3)
XYZxyz(14.0592, 10.8423, 51.7936)
Luminance0.1084 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3154C1 #C19E31
analogous
#319CC1 #3154C1 #5631C1
triadic
#3154C1 #C13154 #54C131
tetradic
#3154C1 #C1319C #C19E31 #31C156
square
#3154C1 #C1319C #C19E31 #31C156
split-complementary
#3154C1 #C15631 #9CC131
monochromatic
#182A5F #253F90 #3154C1 #5A78D5 #8BA0E2

Accessibility & contrast

On white

6.63
#3154C1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#3154C1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3154C1
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3154C1#FFFFFF#000000##FFFFFF
##3154C11.006.633.176.63
#FFFFFF6.631.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C5
Deuteranopia (green-blind)
#0056BF
Tritanopia (blue-blind)
#006F82
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #3154c1;
/* rgb */ color: rgb(49, 84, 193);
/* oklch */ color: oklch(48.6% 0.176 266.3);
Tailwind
colors: {
  custom: {
    50: '#7d83d5',
    500: '#3154c1',
    950: '#000000',
  },
}
SCSS
$custom: #3154c1;
$custom-light: #7d83d5;
$custom-dark: #000000;
JSON
{
  "hex": "#3154c1",
  "rgb": {
    "r": 49,
    "g": 84,
    "b": 193
  },
  "hsl": {
    "h": 225.417,
    "s": 59.504,
    "l": 47.451
  },
  "oklch": {
    "l": 0.48646,
    "c": 0.17559,
    "h": 266.3
  },
  "luminance": 0.10844
}

Semantic roles & 50–950 ramp

primary
#3154C1
secondary
#CCBA82
accent
#BC45E3
background
#F8F8FD
surface
#EFEFFA
border
#CACAD3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #3154C1

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

Preview Lab → · Contrast checker → · Palette generator →

#3154C1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva