#2951A2#2951A2

#2951A2 is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.3% C 0.139 H 262.5°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#2951A2
RGBrgb(41, 81, 162)
HSLhsl(220, 60%, 40%)
HSVhsv(220, 75%, 64%)
CMYKcmyk(74.7%, 50%, 0%, 36.5%)
CIE-LABlab(35.91, 15.20, -47.96)
CIE-LCHlch(35.91, 50.31, 287.58°)
OKLaboklab(45.27% -0.0182 -0.1378)
OKLCHoklch(45.27% 0.139 262.5)
XYZxyz(10.3761, 8.9638, 35.3587)
Luminance0.0896 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2951A2 #A27A29
analogous
#298EA2 #2951A2 #3D29A2
triadic
#2951A2 #A22951 #51A229
tetradic
#2951A2 #A2298E #A27A29 #29A23D
square
#2951A2 #A2298E #A27A29 #29A23D
split-complementary
#2951A2 #A23D29 #8EA229
monochromatic
#102040 #1D3971 #2951A2 #3B6BCD #6C90DA

Accessibility & contrast

On white

7.52
#2951A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#2951A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2951A2
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2951A2#FFFFFF#000000##FFFFFF
##2951A21.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#225AA5
Deuteranopia (green-blind)
#004FA0
Tritanopia (blue-blind)
#006472
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2951a2;
/* rgb */ color: rgb(41, 81, 162);
/* oklch */ color: oklch(45.3% 0.139 262.5);
Tailwind
colors: {
  custom: {
    50: '#7481be',
    500: '#2951a2',
    950: '#000000',
  },
}
SCSS
$custom: #2951a2;
$custom-light: #7481be;
$custom-dark: #000000;
JSON
{
  "hex": "#2951a2",
  "rgb": {
    "r": 41,
    "g": 81,
    "b": 162
  },
  "hsl": {
    "h": 220.165,
    "s": 59.606,
    "l": 39.804
  },
  "oklch": {
    "l": 0.45269,
    "c": 0.13898,
    "h": 262.5
  },
  "luminance": 0.08965
}

Semantic roles & 50–950 ramp

primary
#2951A2
secondary
#C0A367
accent
#AF45E3
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2951A2

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

Preview Lab → · Contrast checker → · Palette generator →

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