#2940BC#2940BC

#2940BC is a dark, vivid blue. Relative luminance 0.078; OKLCH L 44.1% C 0.195 H 268.4°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#2940BC
RGBrgb(41, 64, 188)
HSLhsl(231, 64%, 45%)
HSVhsv(231, 78%, 74%)
CMYKcmyk(78.2%, 66%, 0%, 26.3%)
CIE-LABlab(33.49, 36.25, -67.35)
CIE-LCHlch(33.49, 76.48, 298.29°)
OKLaboklab(44.1% -0.0053 -0.1949)
OKLCHoklch(44.1% 0.195 268.4)
XYZxyz(11.8218, 7.7677, 48.4435)
Luminance0.0777 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2940BC #BCA529
analogous
#298ABC #2940BC #5B29BC
triadic
#2940BC #BC2940 #40BC29
tetradic
#2940BC #BC298A #BCA529 #29BC5B
square
#2940BC #BC298A #BCA529 #29BC5B
split-complementary
#2940BC #BC5B29 #8ABC29
monochromatic
#131E58 #1E2F8A #2940BC #4B61D8 #7D8DE3

Accessibility & contrast

On white

8.22
#2940BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#2940BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2940BC
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2940BC#FFFFFF#000000##FFFFFF
##2940BC1.008.222.558.22
#FFFFFF8.221.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C0
Deuteranopia (green-blind)
#0048BA
Tritanopia (blue-blind)
#006178
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2940bc;
/* rgb */ color: rgb(41, 64, 188);
/* oklch */ color: oklch(44.1% 0.195 268.4);
Tailwind
colors: {
  custom: {
    50: '#7b75d1',
    500: '#2940bc',
    950: '#000000',
  },
}
SCSS
$custom: #2940bc;
$custom-light: #7b75d1;
$custom-dark: #000000;
JSON
{
  "hex": "#2940bc",
  "rgb": {
    "r": 41,
    "g": 64,
    "b": 188
  },
  "hsl": {
    "h": 230.612,
    "s": 64.192,
    "l": 44.902
  },
  "oklch": {
    "l": 0.44104,
    "c": 0.19501,
    "h": 268.4
  },
  "luminance": 0.07769
}

Semantic roles & 50–950 ramp

primary
#2940BC
secondary
#CBBE76
accent
#CD41E7
background
#F8F7FD
surface
#EFEDFA
border
#CAC8D3
text
#0B0814
muted
#7C7B83

Preview Lab

Preview with #2940BC

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

Preview Lab → · Contrast checker → · Palette generator →

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