#2951B2#2951B2

#2951B2 is a mid, vivid blue. Relative luminance 0.096; OKLCH L 46.5% C 0.161 H 264.2°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#2951B2
RGBrgb(41, 81, 178)
HSLhsl(222, 63%, 43%)
HSVhsv(222, 77%, 70%)
CMYKcmyk(77%, 54.5%, 0%, 30.2%)
CIE-LABlab(37.06, 21.36, -55.63)
CIE-LCHlch(37.06, 59.59, 291.01°)
OKLaboklab(46.5% -0.0164 -0.1603)
OKLCHoklch(46.5% 0.161 264.2)
XYZxyz(11.8899, 9.5693, 43.3313)
Luminance0.0957 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2951B2 #B28A29
analogous
#2995B2 #2951B2 #4629B2
triadic
#2951B2 #B22951 #51B229
tetradic
#2951B2 #B22995 #B28A29 #29B246
square
#2951B2 #B22995 #B28A29 #29B246
split-complementary
#2951B2 #B24629 #95B229
monochromatic
#12244F #1E3A80 #2951B2 #446ED4 #7695DF

Accessibility & contrast

On white

7.21
#2951B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#2951B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2951B2
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2951B2#FFFFFF#000000##FFFFFF
##2951B21.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EB5
Deuteranopia (green-blind)
#0051B0
Tritanopia (blue-blind)
#006979
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2951b2;
/* rgb */ color: rgb(41, 81, 178);
/* oklch */ color: oklch(46.5% 0.161 264.2);
Tailwind
colors: {
  custom: {
    50: '#7781ca',
    500: '#2951b2',
    950: '#000000',
  },
}
SCSS
$custom: #2951b2;
$custom-light: #7781ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2951b2",
  "rgb": {
    "r": 41,
    "g": 81,
    "b": 178
  },
  "hsl": {
    "h": 222.482,
    "s": 62.557,
    "l": 42.941
  },
  "oklch": {
    "l": 0.46501,
    "c": 0.16119,
    "h": 264.2
  },
  "luminance": 0.09571
}

Semantic roles & 50–950 ramp

primary
#2951B2
secondary
#C7AE70
accent
#B642E6
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2951B2

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

Preview Lab → · Contrast checker → · Palette generator →

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