#2940BF#2940BF

#2940BF is a dark, vivid blue. Relative luminance 0.079; OKLCH L 44.4% C 0.199 H 268.4°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#2940BF
RGBrgb(41, 64, 191)
HSLhsl(231, 65%, 45%)
HSVhsv(231, 79%, 75%)
CMYKcmyk(78.5%, 66.5%, 0%, 25.1%)
CIE-LABlab(33.77, 37.34, -68.66)
CIE-LCHlch(33.77, 78.15, 298.54°)
OKLaboklab(44.39% -0.0055 -0.1988)
OKLCHoklch(44.39% 0.199 268.4)
XYZxyz(12.1486, 7.8984, 50.1644)
Luminance0.0790 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2940BF #BFA829
analogous
#298BBF #2940BF #5D29BF
triadic
#2940BF #BF2940 #40BF29
tetradic
#2940BF #BF298B #BFA829 #29BF5D
square
#2940BF #BF298B #BFA829 #29BF5D
split-complementary
#2940BF #BF5D29 #8BBF29
monochromatic
#131E5A #1E2F8D #2940BF #4D62D9 #7F8EE4

Accessibility & contrast

On white

8.14
#2940BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#2940BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2940BF
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2940BF#FFFFFF#000000##FFFFFF
##2940BF1.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C3
Deuteranopia (green-blind)
#0048BD
Tritanopia (blue-blind)
#00627A
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2940bf;
/* rgb */ color: rgb(41, 64, 191);
/* oklch */ color: oklch(44.4% 0.199 268.4);
Tailwind
colors: {
  custom: {
    50: '#7c75d3',
    500: '#2940bf',
    950: '#000000',
  },
}
SCSS
$custom: #2940bf;
$custom-light: #7c75d3;
$custom-dark: #000000;
JSON
{
  "hex": "#2940bf",
  "rgb": {
    "r": 41,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 230.8,
    "s": 64.655,
    "l": 45.49
  },
  "oklch": {
    "l": 0.4439,
    "c": 0.19885,
    "h": 268.4
  },
  "luminance": 0.079
}

Semantic roles & 50–950 ramp

primary
#2940BF
secondary
#CCBF78
accent
#CE40E8
background
#F8F7FD
surface
#EFEDFA
border
#CAC8D3
text
#0B0814
muted
#7C7B83

Preview Lab

Preview with #2940BF

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

Preview Lab → · Contrast checker → · Palette generator →

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