#3155A4#3155A4

#3155A4 is a mid, vivid blue. Relative luminance 0.098; OKLCH L 46.6% C 0.134 H 263.6°. Best body text is #FFFFFF at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#3155A4
RGBrgb(49, 85, 164)
HSLhsl(221, 54%, 42%)
HSVhsv(221, 70%, 64%)
CMYKcmyk(70.1%, 48.2%, 0%, 35.7%)
CIE-LABlab(37.53, 14.48, -46.53)
CIE-LCHlch(37.53, 48.73, 287.28°)
OKLaboklab(46.64% -0.0149 -0.1334)
OKLCHoklch(46.64% 0.134 263.6)
XYZxyz(11.2136, 9.8292, 36.4210)
Luminance0.0983 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3155A4 #A48031
analogous
#318FA4 #3155A4 #4631A4
triadic
#3155A4 #A43155 #55A431
tetradic
#3155A4 #A4318F #A48031 #31A446
square
#3155A4 #A4318F #A48031 #31A446
split-complementary
#3155A4 #A44631 #8FA431
monochromatic
#152446 #233D75 #3155A4 #4971C9 #7996D7

Accessibility & contrast

On white

7.08
#3155A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#3155A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3155A4
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3155A4#FFFFFF#000000##FFFFFF
##3155A41.007.082.977.08
#FFFFFF7.081.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B5EA7
Deuteranopia (green-blind)
#0F53A2
Tritanopia (blue-blind)
#006774
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #3155a4;
/* rgb */ color: rgb(49, 85, 164);
/* oklch */ color: oklch(46.6% 0.134 263.6);
Tailwind
colors: {
  custom: {
    50: '#7784bf',
    500: '#3155a4',
    950: '#000000',
  },
}
SCSS
$custom: #3155a4;
$custom-light: #7784bf;
$custom-dark: #000000;
JSON
{
  "hex": "#3155a4",
  "rgb": {
    "r": 49,
    "g": 85,
    "b": 164
  },
  "hsl": {
    "h": 221.217,
    "s": 53.991,
    "l": 41.765
  },
  "oklch": {
    "l": 0.46644,
    "c": 0.1342,
    "h": 263.6
  },
  "luminance": 0.0983
}

Semantic roles & 50–950 ramp

primary
#3155A4
secondary
#BFA772
accent
#AF4ADD
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #3155A4

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

Preview Lab → · Contrast checker → · Palette generator →

#3155A4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva