#2942A4#2942A4

#2942A4 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.3% C 0.161 H 267.8°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#2942A4
RGBrgb(41, 66, 164)
HSLhsl(228, 60%, 40%)
HSVhsv(228, 75%, 64%)
CMYKcmyk(75%, 59.8%, 0%, 35.7%)
CIE-LABlab(31.91, 26.01, -55.65)
CIE-LCHlch(31.91, 61.43, 295.05°)
OKLaboklab(42.29% -0.006 -0.1606)
OKLCHoklch(42.29% 0.161 267.8)
XYZxyz(9.5612, 7.0472, 35.9711)
Luminance0.0705 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2942A4 #A48B29
analogous
#297FA4 #2942A4 #4E29A4
triadic
#2942A4 #A42942 #42A429
tetradic
#2942A4 #A4297F #A48B29 #29A44E
square
#2942A4 #A4297F #A48B29 #29A44E
split-complementary
#2942A4 #A44E29 #7FA429
monochromatic
#111B42 #1D2E73 #2942A4 #3C5ACE #6D83DA

Accessibility & contrast

On white

8.72
#2942A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#2942A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2942A4#FFFFFF#000000##FFFFFF
##2942A41.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)
#0051A7
Deuteranopia (green-blind)
#0046A2
Tritanopia (blue-blind)
#005B6C
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2942a4;
/* rgb */ color: rgb(41, 66, 164);
/* oklch */ color: oklch(42.3% 0.161 267.8);
Tailwind
colors: {
  custom: {
    50: '#7576c0',
    500: '#2942a4',
    950: '#000000',
  },
}
SCSS
$custom: #2942a4;
$custom-light: #7576c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2942a4",
  "rgb": {
    "r": 41,
    "g": 66,
    "b": 164
  },
  "hsl": {
    "h": 227.805,
    "s": 60,
    "l": 40.196
  },
  "oklch": {
    "l": 0.42294,
    "c": 0.16075,
    "h": 267.8
  },
  "luminance": 0.07048
}

Semantic roles & 50–950 ramp

primary
#2942A4
secondary
#C1AF68
accent
#C345E3
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2942A4

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

Preview Lab → · Contrast checker → · Palette generator →

#2942A4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva