#2940A9#2940A9

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

Color values

HEX#2940A9
RGBrgb(41, 64, 169)
HSLhsl(229, 61%, 41%)
HSVhsv(229, 76%, 66%)
CMYKcmyk(75.7%, 62.1%, 0%, 33.7%)
CIE-LABlab(31.81, 29.23, -58.82)
CIE-LCHlch(31.81, 65.68, 296.42°)
OKLaboklab(42.35% -0.0046 -0.17)
OKLCHoklch(42.35% 0.17 268.4)
XYZxyz(9.9068, 7.0017, 38.3578)
Luminance0.0700 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2940A9 #A99229
analogous
#2980A9 #2940A9 #5229A9
triadic
#2940A9 #A92940 #40A929
tetradic
#2940A9 #A92980 #A99229 #29A952
square
#2940A9 #A92980 #A99229 #29A952
split-complementary
#2940A9 #A95229 #80A929
monochromatic
#111B46 #1D2D78 #2940A9 #3F59D0 #7084DC

Accessibility & contrast

On white

8.75
#2940A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#2940A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2940A9#FFFFFF#000000##FFFFFF
##2940A91.008.752.408.75
#FFFFFF8.751.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AC
Deuteranopia (green-blind)
#0045A7
Tritanopia (blue-blind)
#005B6E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2940a9;
/* rgb */ color: rgb(41, 64, 169);
/* oklch */ color: oklch(42.3% 0.170 268.4);
Tailwind
colors: {
  custom: {
    50: '#7674c3',
    500: '#2940a9',
    950: '#000000',
  },
}
SCSS
$custom: #2940a9;
$custom-light: #7674c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2940a9",
  "rgb": {
    "r": 41,
    "g": 64,
    "b": 169
  },
  "hsl": {
    "h": 229.219,
    "s": 60.952,
    "l": 41.176
  },
  "oklch": {
    "l": 0.42347,
    "c": 0.17003,
    "h": 268.4
  },
  "luminance": 0.07003
}

Semantic roles & 50–950 ramp

primary
#2940A9
secondary
#C3B36A
accent
#C744E4
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2940A9

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

Preview Lab → · Contrast checker → · Palette generator →

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