#2940A4#2940A4

#2940A4 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.9% C 0.163 H 268.4°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#2940A4
RGBrgb(41, 64, 164)
HSLhsl(229, 60%, 40%)
HSVhsv(229, 75%, 64%)
CMYKcmyk(75%, 61%, 0%, 35.7%)
CIE-LABlab(31.39, 27.35, -56.51)
CIE-LCHlch(31.39, 62.78, 295.82°)
OKLaboklab(41.9% -0.0046 -0.1632)
OKLCHoklch(41.9% 0.163 268.4)
XYZxyz(9.4464, 6.8175, 35.9328)
Luminance0.0682 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2940A4 #A48D29
analogous
#297EA4 #2940A4 #4F29A4
triadic
#2940A4 #A42940 #40A429
tetradic
#2940A4 #A4297E #A48D29 #29A44F
square
#2940A4 #A4297E #A48D29 #29A44F
split-complementary
#2940A4 #A44F29 #7EA429
monochromatic
#111A42 #1D2D73 #2940A4 #3C57CE #6D81DA

Accessibility & contrast

On white

8.88
#2940A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#2940A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2940A4
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2940A4#FFFFFF#000000##FFFFFF
##2940A41.008.882.368.88
#FFFFFF8.881.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A7
Deuteranopia (green-blind)
#0044A2
Tritanopia (blue-blind)
#00596B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2940a4;
/* rgb */ color: rgb(41, 64, 164);
/* oklch */ color: oklch(41.9% 0.163 268.4);
Tailwind
colors: {
  custom: {
    50: '#7574c0',
    500: '#2940a4',
    950: '#000000',
  },
}
SCSS
$custom: #2940a4;
$custom-light: #7574c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2940a4",
  "rgb": {
    "r": 41,
    "g": 64,
    "b": 164
  },
  "hsl": {
    "h": 228.78,
    "s": 60,
    "l": 40.196
  },
  "oklch": {
    "l": 0.41902,
    "c": 0.16325,
    "h": 268.4
  },
  "luminance": 0.06819
}

Semantic roles & 50–950 ramp

primary
#2940A4
secondary
#C1B068
accent
#C645E3
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2940A4

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

Preview Lab → · Contrast checker → · Palette generator →

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