#2951B9#2951B9

#2951B9 is a mid, vivid blue. Relative luminance 0.099; OKLCH L 47.1% C 0.171 H 264.7°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#2951B9
RGBrgb(41, 81, 185)
HSLhsl(223, 64%, 44%)
HSVhsv(223, 78%, 73%)
CMYKcmyk(77.8%, 56.2%, 0%, 27.5%)
CIE-LABlab(37.59, 24.05, -58.90)
CIE-LCHlch(37.59, 63.62, 292.21°)
OKLaboklab(47.07% -0.0159 -0.17)
OKLCHoklch(47.07% 0.171 264.7)
XYZxyz(12.6107, 9.8576, 47.1276)
Luminance0.0986 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2951B9 #B99129
analogous
#2999B9 #2951B9 #4929B9
triadic
#2951B9 #B92951 #51B929
tetradic
#2951B9 #B92999 #B99129 #29B949
square
#2951B9 #B92999 #B99129 #29B949
split-complementary
#2951B9 #B94929 #99B929
monochromatic
#132555 #1E3B87 #2951B9 #4970D7 #7B97E2

Accessibility & contrast

On white

7.07
#2951B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#2951B9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2951B9
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2951B9#FFFFFF#000000##FFFFFF
##2951B91.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBD
Deuteranopia (green-blind)
#0052B7
Tritanopia (blue-blind)
#006B7D
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2951b9;
/* rgb */ color: rgb(41, 81, 185);
/* oklch */ color: oklch(47.1% 0.171 264.7);
Tailwind
colors: {
  custom: {
    50: '#7981cf',
    500: '#2951b9',
    950: '#000000',
  },
}
SCSS
$custom: #2951b9;
$custom-light: #7981cf;
$custom-dark: #000000;
JSON
{
  "hex": "#2951b9",
  "rgb": {
    "r": 41,
    "g": 81,
    "b": 185
  },
  "hsl": {
    "h": 223.333,
    "s": 63.717,
    "l": 44.314
  },
  "oklch": {
    "l": 0.47066,
    "c": 0.1707,
    "h": 264.7
  },
  "luminance": 0.09859
}

Semantic roles & 50–950 ramp

primary
#2951B9
secondary
#CAB274
accent
#B941E7
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #2951B9

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

Preview Lab → · Contrast checker → · Palette generator →

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