#2951AB#2951AB

#2951AB is a mid, vivid blue. Relative luminance 0.093; OKLCH L 46.0% C 0.152 H 263.5°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#2951AB
RGBrgb(41, 81, 171)
HSLhsl(222, 61%, 42%)
HSVhsv(222, 76%, 67%)
CMYKcmyk(76%, 52.6%, 0%, 32.9%)
CIE-LABlab(36.55, 18.67, -52.31)
CIE-LCHlch(36.55, 55.54, 289.64°)
OKLaboklab(45.95% -0.0171 -0.1506)
OKLCHoklch(45.95% 0.152 263.5)
XYZxyz(11.2049, 9.2953, 39.7238)
Luminance0.0930 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2951AB #AB8329
analogous
#2992AB #2951AB #4229AB
triadic
#2951AB #AB2951 #51AB29
tetradic
#2951AB #AB2992 #AB8329 #29AB42
square
#2951AB #AB2992 #AB8329 #29AB42
split-complementary
#2951AB #AB4229 #92AB29
monochromatic
#112248 #1D3A7A #2951AB #406DD1 #7192DD

Accessibility & contrast

On white

7.34
#2951AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#2951AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2951AB
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2951AB#FFFFFF#000000##FFFFFF
##2951AB1.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#135CAE
Deuteranopia (green-blind)
#0050A9
Tritanopia (blue-blind)
#006776
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2951ab;
/* rgb */ color: rgb(41, 81, 171);
/* oklch */ color: oklch(46.0% 0.152 263.5);
Tailwind
colors: {
  custom: {
    50: '#7681c5',
    500: '#2951ab',
    950: '#000000',
  },
}
SCSS
$custom: #2951ab;
$custom-light: #7681c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2951ab",
  "rgb": {
    "r": 41,
    "g": 81,
    "b": 171
  },
  "hsl": {
    "h": 221.538,
    "s": 61.321,
    "l": 41.569
  },
  "oklch": {
    "l": 0.45952,
    "c": 0.15155,
    "h": 263.5
  },
  "luminance": 0.09297
}

Semantic roles & 50–950 ramp

primary
#2951AB
secondary
#C4A96C
accent
#B343E4
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2951AB

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

Preview Lab → · Contrast checker → · Palette generator →

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