#2940B3#2940B3

#2940B3 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.3% C 0.183 H 268.5°. Best body text is #FFFFFF at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#2940B3
RGBrgb(41, 64, 179)
HSLhsl(230, 63%, 43%)
HSVhsv(230, 77%, 70%)
CMYKcmyk(77.1%, 64.2%, 0%, 29.8%)
CIE-LABlab(32.68, 32.95, -63.36)
CIE-LCHlch(32.68, 71.41, 297.48°)
OKLaboklab(43.26% -0.0049 -0.1833)
OKLCHoklch(43.26% 0.183 268.5)
XYZxyz(10.8817, 7.3917, 43.4923)
Luminance0.0739 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2940B3 #B39C29
analogous
#2985B3 #2940B3 #5729B3
triadic
#2940B3 #B32940 #40B329
tetradic
#2940B3 #B32985 #B39C29 #29B357
square
#2940B3 #B32985 #B39C29 #29B357
split-complementary
#2940B3 #B35729 #85B329
monochromatic
#121C4F #1E2E81 #2940B3 #455DD4 #7788E0

Accessibility & contrast

On white

8.47
#2940B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#2940B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2940B3
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2940B3#FFFFFF#000000##FFFFFF
##2940B31.008.472.488.47
#FFFFFF8.471.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B7
Deuteranopia (green-blind)
#0046B1
Tritanopia (blue-blind)
#005E73
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2940b3;
/* rgb */ color: rgb(41, 64, 179);
/* oklch */ color: oklch(43.3% 0.183 268.5);
Tailwind
colors: {
  custom: {
    50: '#7974cb',
    500: '#2940b3',
    950: '#000000',
  },
}
SCSS
$custom: #2940b3;
$custom-light: #7974cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2940b3",
  "rgb": {
    "r": 41,
    "g": 64,
    "b": 179
  },
  "hsl": {
    "h": 230,
    "s": 62.727,
    "l": 43.137
  },
  "oklch": {
    "l": 0.4326,
    "c": 0.18333,
    "h": 268.5
  },
  "luminance": 0.07393
}

Semantic roles & 50–950 ramp

primary
#2940B3
secondary
#C7B970
accent
#CA42E6
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #2940B3

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

Preview Lab → · Contrast checker → · Palette generator →

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