#3151AC#3151AC

#3151AC is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.4% C 0.151 H 266.1°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#3151AC
RGBrgb(49, 81, 172)
HSLhsl(224, 56%, 43%)
HSVhsv(224, 72%, 67%)
CMYKcmyk(71.5%, 52.9%, 0%, 32.5%)
CIE-LABlab(36.96, 20.12, -52.22)
CIE-LCHlch(36.96, 55.97, 291.07°)
OKLaboklab(46.38% -0.0103 -0.1502)
OKLCHoklch(46.38% 0.151 266.1)
XYZxyz(11.6528, 9.5152, 40.2442)
Luminance0.0952 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3151AC #AC8C31
analogous
#318EAC #3151AC #4E31AC
triadic
#3151AC #AC3151 #51AC31
tetradic
#3151AC #AC318E #AC8C31 #31AC4E
square
#3151AC #AC318E #AC8C31 #31AC4E
split-complementary
#3151AC #AC4E31 #8EAC31
monochromatic
#16244D #233B7C #3151AC #4E6FCC #7D95DA

Accessibility & contrast

On white

7.23
#3151AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#3151AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3151AC
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3151AC#FFFFFF#000000##FFFFFF
##3151AC1.007.232.907.23
#FFFFFF7.231.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#145DAF
Deuteranopia (green-blind)
#0052AA
Tritanopia (blue-blind)
#006776
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #3151ac;
/* rgb */ color: rgb(49, 81, 172);
/* oklch */ color: oklch(46.4% 0.151 266.1);
Tailwind
colors: {
  custom: {
    50: '#7981c5',
    500: '#3151ac',
    950: '#000000',
  },
}
SCSS
$custom: #3151ac;
$custom-light: #7981c5;
$custom-dark: #000000;
JSON
{
  "hex": "#3151ac",
  "rgb": {
    "r": 49,
    "g": 81,
    "b": 172
  },
  "hsl": {
    "h": 224.39,
    "s": 55.656,
    "l": 43.333
  },
  "oklch": {
    "l": 0.4638,
    "c": 0.15054,
    "h": 266.1
  },
  "luminance": 0.09516
}

Semantic roles & 50–950 ramp

primary
#3151AC
secondary
#C3AF76
accent
#B849DF
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #3151AC

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

Preview Lab → · Contrast checker → · Palette generator →

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