#2940AA#2940AA

#2940AA is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.4% C 0.171 H 268.4°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#2940AA
RGBrgb(41, 64, 170)
HSLhsl(229, 61%, 41%)
HSVhsv(229, 76%, 67%)
CMYKcmyk(75.9%, 62.4%, 0%, 33.3%)
CIE-LABlab(31.90, 29.60, -59.28)
CIE-LCHlch(31.90, 66.26, 296.54°)
OKLaboklab(42.44% -0.0046 -0.1713)
OKLCHoklch(42.44% 0.171 268.4)
XYZxyz(10.0010, 7.0394, 38.8541)
Luminance0.0704 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2940AA #AA9329
analogous
#2981AA #2940AA #5329AA
triadic
#2940AA #AA2940 #40AA29
tetradic
#2940AA #AA2981 #AA9329 #29AA53
square
#2940AA #AA2981 #AA9329 #29AA53
split-complementary
#2940AA #AA5329 #81AA29
monochromatic
#111B47 #1D2D79 #2940AA #3F59D1 #7184DD

Accessibility & contrast

On white

8.72
#2940AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#2940AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2940AA#FFFFFF#000000##FFFFFF
##2940AA1.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AD
Deuteranopia (green-blind)
#0045A8
Tritanopia (blue-blind)
#005B6F
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2940aa;
/* rgb */ color: rgb(41, 64, 170);
/* oklch */ color: oklch(42.4% 0.171 268.4);
Tailwind
colors: {
  custom: {
    50: '#7774c4',
    500: '#2940aa',
    950: '#000000',
  },
}
SCSS
$custom: #2940aa;
$custom-light: #7774c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2940aa",
  "rgb": {
    "r": 41,
    "g": 64,
    "b": 170
  },
  "hsl": {
    "h": 229.302,
    "s": 61.137,
    "l": 41.373
  },
  "oklch": {
    "l": 0.42437,
    "c": 0.17138,
    "h": 268.4
  },
  "luminance": 0.0704
}

Semantic roles & 50–950 ramp

primary
#2940AA
secondary
#C4B46B
accent
#C844E4
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2940AA

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

Preview Lab → · Contrast checker → · Palette generator →

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