#2940A2#2940A2

#2940A2 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.7% C 0.161 H 268.4°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#2940A2
RGBrgb(41, 64, 162)
HSLhsl(229, 60%, 40%)
HSVhsv(229, 75%, 64%)
CMYKcmyk(74.7%, 60.5%, 0%, 36.5%)
CIE-LABlab(31.22, 26.59, -55.57)
CIE-LCHlch(31.22, 61.61, 295.57°)
OKLaboklab(41.73% -0.0046 -0.1604)
OKLCHoklch(41.73% 0.161 268.4)
XYZxyz(9.2672, 6.7459, 34.9891)
Luminance0.0675 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2940A2 #A28B29
analogous
#297DA2 #2940A2 #4F29A2
triadic
#2940A2 #A22940 #40A229
tetradic
#2940A2 #A2297D #A28B29 #29A24F
square
#2940A2 #A2297D #A28B29 #29A24F
split-complementary
#2940A2 #A24F29 #7DA229
monochromatic
#101940 #1D2D71 #2940A2 #3B57CD #6C81DA

Accessibility & contrast

On white

8.94
#2940A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#2940A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2940A2#FFFFFF#000000##FFFFFF
##2940A21.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA5
Deuteranopia (green-blind)
#0044A0
Tritanopia (blue-blind)
#00596A
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2940a2;
/* rgb */ color: rgb(41, 64, 162);
/* oklch */ color: oklch(41.7% 0.161 268.4);
Tailwind
colors: {
  custom: {
    50: '#7574be',
    500: '#2940a2',
    950: '#000000',
  },
}
SCSS
$custom: #2940a2;
$custom-light: #7574be;
$custom-dark: #000000;
JSON
{
  "hex": "#2940a2",
  "rgb": {
    "r": 41,
    "g": 64,
    "b": 162
  },
  "hsl": {
    "h": 228.595,
    "s": 59.606,
    "l": 39.804
  },
  "oklch": {
    "l": 0.41727,
    "c": 0.16052,
    "h": 268.4
  },
  "luminance": 0.06747
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2940A2

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

Preview Lab → · Contrast checker → · Palette generator →

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