#3151A4#3151A4

#3151A4 is a mid, vivid blue. Relative luminance 0.092; OKLCH L 45.8% C 0.139 H 265.4°. Best body text is #FFFFFF at 7.39:1 contrast (WCAG AA passes).

Color values

HEX#3151A4
RGBrgb(49, 81, 164)
HSLhsl(223, 54%, 42%)
HSVhsv(223, 70%, 64%)
CMYKcmyk(70.1%, 50.6%, 0%, 35.7%)
CIE-LABlab(36.40, 17.12, -48.36)
CIE-LCHlch(36.40, 51.30, 289.49°)
OKLaboklab(45.78% -0.0112 -0.1388)
OKLCHoklch(45.78% 0.139 265.4)
XYZxyz(10.9075, 9.2171, 36.3190)
Luminance0.0922 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3151A4 #A48431
analogous
#318BA4 #3151A4 #4A31A4
triadic
#3151A4 #A43151 #51A431
tetradic
#3151A4 #A4318B #A48431 #31A44A
square
#3151A4 #A4318B #A48431 #31A44A
split-complementary
#3151A4 #A44A31 #8BA431
monochromatic
#152246 #233A75 #3151A4 #496DC9 #7993D7

Accessibility & contrast

On white

7.39
#3151A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#3151A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3151A4
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3151A4#FFFFFF#000000##FFFFFF
##3151A41.007.392.847.39
#FFFFFF7.391.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#215BA7
Deuteranopia (green-blind)
#0051A2
Tritanopia (blue-blind)
#006573
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #3151a4;
/* rgb */ color: rgb(49, 81, 164);
/* oklch */ color: oklch(45.8% 0.139 265.4);
Tailwind
colors: {
  custom: {
    50: '#7781bf',
    500: '#3151a4',
    950: '#000000',
  },
}
SCSS
$custom: #3151a4;
$custom-light: #7781bf;
$custom-dark: #000000;
JSON
{
  "hex": "#3151a4",
  "rgb": {
    "r": 49,
    "g": 81,
    "b": 164
  },
  "hsl": {
    "h": 223.304,
    "s": 53.991,
    "l": 41.765
  },
  "oklch": {
    "l": 0.45778,
    "c": 0.13926,
    "h": 265.4
  },
  "luminance": 0.09218
}

Semantic roles & 50–950 ramp

primary
#3151A4
secondary
#BFAA72
accent
#B44ADD
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #3151A4

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

Preview Lab → · Contrast checker → · Palette generator →

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