#2940B6#2940B6

#2940B6 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.5% C 0.187 H 268.5°. Best body text is #FFFFFF at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#2940B6
RGBrgb(41, 64, 182)
HSLhsl(230, 63%, 44%)
HSVhsv(230, 77%, 71%)
CMYKcmyk(77.5%, 64.8%, 0%, 28.6%)
CIE-LABlab(32.95, 34.05, -64.70)
CIE-LCHlch(32.95, 73.11, 297.76°)
OKLaboklab(43.54% -0.005 -0.1872)
OKLCHoklch(43.54% 0.187 268.5)
XYZxyz(11.1884, 7.5144, 45.1076)
Luminance0.0752 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2940B6 #B69F29
analogous
#2986B6 #2940B6 #5829B6
triadic
#2940B6 #B62940 #40B629
tetradic
#2940B6 #B62986 #B69F29 #29B658
square
#2940B6 #B62986 #B69F29 #29B658
split-complementary
#2940B6 #B65829 #86B629
monochromatic
#121D52 #1E2E84 #2940B6 #475ED5 #798AE1

Accessibility & contrast

On white

8.39
#2940B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#2940B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2940B6
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2940B6#FFFFFF#000000##FFFFFF
##2940B61.008.392.508.39
#FFFFFF8.391.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BA
Deuteranopia (green-blind)
#0047B4
Tritanopia (blue-blind)
#005F75
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2940b6;
/* rgb */ color: rgb(41, 64, 182);
/* oklch */ color: oklch(43.5% 0.187 268.5);
Tailwind
colors: {
  custom: {
    50: '#7a74cd',
    500: '#2940b6',
    950: '#000000',
  },
}
SCSS
$custom: #2940b6;
$custom-light: #7a74cd;
$custom-dark: #000000;
JSON
{
  "hex": "#2940b6",
  "rgb": {
    "r": 41,
    "g": 64,
    "b": 182
  },
  "hsl": {
    "h": 230.213,
    "s": 63.229,
    "l": 43.725
  },
  "oklch": {
    "l": 0.43539,
    "c": 0.18726,
    "h": 268.5
  },
  "luminance": 0.07516
}

Semantic roles & 50–950 ramp

primary
#2940B6
secondary
#C9BB72
accent
#CB42E6
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0814
muted
#7C7B82

Preview Lab

Preview with #2940B6

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

Preview Lab → · Contrast checker → · Palette generator →

#2940B6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva