#2940A3#2940A3

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

Color values

HEX#2940A3
RGBrgb(41, 64, 163)
HSLhsl(229, 60%, 40%)
HSVhsv(229, 75%, 64%)
CMYKcmyk(74.8%, 60.7%, 0%, 36.1%)
CIE-LABlab(31.30, 26.97, -56.04)
CIE-LCHlch(31.30, 62.19, 295.70°)
OKLaboklab(41.81% -0.0046 -0.1618)
OKLCHoklch(41.81% 0.162 268.4)
XYZxyz(9.3564, 6.7816, 35.4591)
Luminance0.0678 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2940A3 #A38C29
analogous
#297DA3 #2940A3 #4F29A3
triadic
#2940A3 #A32940 #40A329
tetradic
#2940A3 #A3297D #A38C29 #29A34F
square
#2940A3 #A3297D #A38C29 #29A34F
split-complementary
#2940A3 #A34F29 #7DA329
monochromatic
#101A41 #1D2D72 #2940A3 #3B57CE #6C81DA

Accessibility & contrast

On white

8.91
#2940A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2940A3
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2940A3#FFFFFF#000000##FFFFFF
##2940A31.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA6
Deuteranopia (green-blind)
#0044A1
Tritanopia (blue-blind)
#00596B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2940a3;
/* rgb */ color: rgb(41, 64, 163);
/* oklch */ color: oklch(41.8% 0.162 268.4);
Tailwind
colors: {
  custom: {
    50: '#7574bf',
    500: '#2940a3',
    950: '#000000',
  },
}
SCSS
$custom: #2940a3;
$custom-light: #7574bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2940a3",
  "rgb": {
    "r": 41,
    "g": 64,
    "b": 163
  },
  "hsl": {
    "h": 228.689,
    "s": 59.804,
    "l": 40
  },
  "oklch": {
    "l": 0.41814,
    "c": 0.16189,
    "h": 268.4
  },
  "luminance": 0.06783
}

Semantic roles & 50–950 ramp

primary
#2940A3
secondary
#C1B067
accent
#C545E3
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2940A3

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

Preview Lab → · Contrast checker → · Palette generator →

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