#3151A0#3151A0

#3151A0 is a mid, vivid blue. Relative luminance 0.091; OKLCH L 45.5% C 0.134 H 265.0°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#3151A0
RGBrgb(49, 81, 160)
HSLhsl(223, 53%, 41%)
HSVhsv(223, 69%, 63%)
CMYKcmyk(69.4%, 49.4%, 0%, 37.3%)
CIE-LABlab(36.13, 15.62, -46.40)
CIE-LCHlch(36.13, 48.96, 288.60°)
OKLaboklab(45.49% -0.0117 -0.133)
OKLCHoklch(45.49% 0.134 265)
XYZxyz(10.5520, 9.0748, 34.4464)
Luminance0.0908 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3151A0 #A08031
analogous
#3188A0 #3151A0 #4831A0
triadic
#3151A0 #A03151 #51A031
tetradic
#3151A0 #A03188 #A08031 #31A048
square
#3151A0 #A03188 #A08031 #31A048
split-complementary
#3151A0 #A04831 #88A031
monochromatic
#142242 #233971 #3151A0 #476CC7 #7692D5

Accessibility & contrast

On white

7.46
#3151A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#3151A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3151A0
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3151A0#FFFFFF#000000##FFFFFF
##3151A01.007.462.827.46
#FFFFFF7.461.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#265AA3
Deuteranopia (green-blind)
#06509E
Tritanopia (blue-blind)
#006371
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #3151a0;
/* rgb */ color: rgb(49, 81, 160);
/* oklch */ color: oklch(45.5% 0.134 265.0);
Tailwind
colors: {
  custom: {
    50: '#7681bd',
    500: '#3151a0',
    950: '#000000',
  },
}
SCSS
$custom: #3151a0;
$custom-light: #7681bd;
$custom-dark: #000000;
JSON
{
  "hex": "#3151a0",
  "rgb": {
    "r": 49,
    "g": 81,
    "b": 160
  },
  "hsl": {
    "h": 222.703,
    "s": 53.11,
    "l": 40.98
  },
  "oklch": {
    "l": 0.45485,
    "c": 0.13357,
    "h": 265
  },
  "luminance": 0.09076
}

Semantic roles & 50–950 ramp

primary
#3151A0
secondary
#BDA770
accent
#B34BDD
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #3151A0

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

Preview Lab → · Contrast checker → · Palette generator →

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