#2951BA#2951BA

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

Color values

HEX#2951BA
RGBrgb(41, 81, 186)
HSLhsl(223, 64%, 45%)
HSVhsv(223, 78%, 73%)
CMYKcmyk(78%, 56.5%, 0%, 27.1%)
CIE-LABlab(37.66, 24.43, -59.36)
CIE-LCHlch(37.66, 64.19, 292.37°)
OKLaboklab(47.15% -0.0158 -0.1713)
OKLCHoklch(47.15% 0.172 264.7)
XYZxyz(12.7167, 9.9000, 47.6855)
Luminance0.0990 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2951BA #BA9229
analogous
#299ABA #2951BA #4929BA
triadic
#2951BA #BA2951 #51BA29
tetradic
#2951BA #BA299A #BA9229 #29BA49
square
#2951BA #BA299A #BA9229 #29BA49
split-complementary
#2951BA #BA4929 #9ABA29
monochromatic
#132556 #1E3B88 #2951BA #4970D7 #7B98E2

Accessibility & contrast

On white

7.05
#2951BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#2951BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2951BA
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2951BA#FFFFFF#000000##FFFFFF
##2951BA1.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BE
Deuteranopia (green-blind)
#0052B8
Tritanopia (blue-blind)
#006B7D
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2951ba;
/* rgb */ color: rgb(41, 81, 186);
/* oklch */ color: oklch(47.1% 0.172 264.7);
Tailwind
colors: {
  custom: {
    50: '#7981d0',
    500: '#2951ba',
    950: '#000000',
  },
}
SCSS
$custom: #2951ba;
$custom-light: #7981d0;
$custom-dark: #000000;
JSON
{
  "hex": "#2951ba",
  "rgb": {
    "r": 41,
    "g": 81,
    "b": 186
  },
  "hsl": {
    "h": 223.448,
    "s": 63.877,
    "l": 44.51
  },
  "oklch": {
    "l": 0.47148,
    "c": 0.17205,
    "h": 264.7
  },
  "luminance": 0.09901
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2951BA

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

Preview Lab → · Contrast checker → · Palette generator →

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