#2940A5#2940A5

#2940A5 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.0% C 0.165 H 268.4°. Best body text is #FFFFFF at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#2940A5
RGBrgb(41, 64, 165)
HSLhsl(229, 60%, 40%)
HSVhsv(229, 75%, 65%)
CMYKcmyk(75.2%, 61.2%, 0%, 35.3%)
CIE-LABlab(31.47, 27.72, -56.97)
CIE-LCHlch(31.47, 63.36, 295.95°)
OKLaboklab(41.99% -0.0046 -0.1645)
OKLCHoklch(41.99% 0.165 268.4)
XYZxyz(9.5370, 6.8538, 36.4103)
Luminance0.0685 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2940A5 #A58E29
analogous
#297EA5 #2940A5 #5029A5
triadic
#2940A5 #A52940 #40A529
tetradic
#2940A5 #A5297E #A58E29 #29A550
square
#2940A5 #A5297E #A58E29 #29A550
split-complementary
#2940A5 #A55029 #7EA529
monochromatic
#111A43 #1D2D74 #2940A5 #3D58CF #6E82DB

Accessibility & contrast

On white

8.86
#2940A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#2940A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2940A5
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2940A5#FFFFFF#000000##FFFFFF
##2940A51.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A8
Deuteranopia (green-blind)
#0044A3
Tritanopia (blue-blind)
#005A6C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2940a5;
/* rgb */ color: rgb(41, 64, 165);
/* oklch */ color: oklch(42.0% 0.165 268.4);
Tailwind
colors: {
  custom: {
    50: '#7574c1',
    500: '#2940a5',
    950: '#000000',
  },
}
SCSS
$custom: #2940a5;
$custom-light: #7574c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2940a5",
  "rgb": {
    "r": 41,
    "g": 64,
    "b": 165
  },
  "hsl": {
    "h": 228.871,
    "s": 60.194,
    "l": 40.392
  },
  "oklch": {
    "l": 0.41991,
    "c": 0.16461,
    "h": 268.4
  },
  "luminance": 0.06855
}

Semantic roles & 50–950 ramp

primary
#2940A5
secondary
#C2B168
accent
#C644E3
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2940A5

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

Preview Lab → · Contrast checker → · Palette generator →

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