#2951A8#2951A8

#2951A8 is a mid, vivid blue. Relative luminance 0.092; OKLCH L 45.7% C 0.147 H 263.2°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#2951A8
RGBrgb(41, 81, 168)
HSLhsl(221, 61%, 41%)
HSVhsv(221, 76%, 66%)
CMYKcmyk(75.6%, 51.8%, 0%, 34.1%)
CIE-LABlab(36.33, 17.51, -50.87)
CIE-LCHlch(36.33, 53.80, 289.00°)
OKLaboklab(45.72% -0.0174 -0.1463)
OKLCHoklch(45.72% 0.147 263.2)
XYZxyz(10.9222, 9.1822, 38.2349)
Luminance0.0918 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2951A8 #A88029
analogous
#2990A8 #2951A8 #4029A8
triadic
#2951A8 #A82951 #51A829
tetradic
#2951A8 #A82990 #A88029 #29A840
square
#2951A8 #A82990 #A88029 #29A840
split-complementary
#2951A8 #A84029 #90A829
monochromatic
#112246 #1D3977 #2951A8 #3E6CD0 #6F92DC

Accessibility & contrast

On white

7.40
#2951A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#2951A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2951A8
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2951A8#FFFFFF#000000##FFFFFF
##2951A81.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#195CAB
Deuteranopia (green-blind)
#0050A6
Tritanopia (blue-blind)
#006674
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2951a8;
/* rgb */ color: rgb(41, 81, 168);
/* oklch */ color: oklch(45.7% 0.147 263.2);
Tailwind
colors: {
  custom: {
    50: '#7581c2',
    500: '#2951a8',
    950: '#000000',
  },
}
SCSS
$custom: #2951a8;
$custom-light: #7581c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2951a8",
  "rgb": {
    "r": 41,
    "g": 81,
    "b": 168
  },
  "hsl": {
    "h": 221.102,
    "s": 60.766,
    "l": 40.98
  },
  "oklch": {
    "l": 0.45721,
    "c": 0.14738,
    "h": 263.2
  },
  "luminance": 0.09183
}

Semantic roles & 50–950 ramp

primary
#2951A8
secondary
#C3A76A
accent
#B244E4
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #2951A8

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

Preview Lab → · Contrast checker → · Palette generator →

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