#2951A4#2951A4

#2951A4 is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.4% C 0.142 H 262.7°. Best body text is #FFFFFF at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#2951A4
RGBrgb(41, 81, 164)
HSLhsl(220, 60%, 40%)
HSVhsv(220, 75%, 64%)
CMYKcmyk(75%, 50.6%, 0%, 35.7%)
CIE-LABlab(36.05, 15.97, -48.94)
CIE-LCHlch(36.05, 51.48, 288.07°)
OKLaboklab(45.42% -0.0179 -0.1407)
OKLCHoklch(45.42% 0.142 262.7)
XYZxyz(10.5553, 9.0355, 36.3025)
Luminance0.0904 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2951A4 #A47C29
analogous
#298EA4 #2951A4 #3F29A4
triadic
#2951A4 #A42951 #51A429
tetradic
#2951A4 #A4298E #A47C29 #29A43F
square
#2951A4 #A4298E #A47C29 #29A43F
split-complementary
#2951A4 #A43F29 #8EA429
monochromatic
#112142 #1D3973 #2951A4 #3C6CCE #6D91DA

Accessibility & contrast

On white

7.48
#2951A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#2951A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2951A4
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2951A4#FFFFFF#000000##FFFFFF
##2951A41.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F5BA7
Deuteranopia (green-blind)
#004FA2
Tritanopia (blue-blind)
#006572
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2951a4;
/* rgb */ color: rgb(41, 81, 164);
/* oklch */ color: oklch(45.4% 0.142 262.7);
Tailwind
colors: {
  custom: {
    50: '#7481c0',
    500: '#2951a4',
    950: '#000000',
  },
}
SCSS
$custom: #2951a4;
$custom-light: #7481c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2951a4",
  "rgb": {
    "r": 41,
    "g": 81,
    "b": 164
  },
  "hsl": {
    "h": 220.488,
    "s": 60,
    "l": 40.196
  },
  "oklch": {
    "l": 0.45418,
    "c": 0.1418,
    "h": 262.7
  },
  "luminance": 0.09037
}

Semantic roles & 50–950 ramp

primary
#2951A4
secondary
#C1A468
accent
#B045E3
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2951A4

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

Preview Lab → · Contrast checker → · Palette generator →

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