#2942A7#2942A7

#2942A7 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.6% C 0.165 H 267.9°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#2942A7
RGBrgb(41, 66, 167)
HSLhsl(228, 61%, 41%)
HSVhsv(228, 75%, 65%)
CMYKcmyk(75.4%, 60.5%, 0%, 34.5%)
CIE-LABlab(32.16, 27.15, -57.05)
CIE-LCHlch(32.16, 63.18, 295.45°)
OKLaboklab(42.56% -0.006 -0.1647)
OKLCHoklch(42.56% 0.165 267.9)
XYZxyz(9.8353, 7.1568, 37.4148)
Luminance0.0716 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2942A7 #A78E29
analogous
#2981A7 #2942A7 #4F29A7
triadic
#2942A7 #A72942 #42A729
tetradic
#2942A7 #A72981 #A78E29 #29A74F
square
#2942A7 #A72981 #A78E29 #29A74F
split-complementary
#2942A7 #A74F29 #81A729
monochromatic
#111B45 #1D2F76 #2942A7 #3E5BD0 #6F84DC

Accessibility & contrast

On white

8.64
#2942A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#2942A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2942A7
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2942A7#FFFFFF#000000##FFFFFF
##2942A71.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AA
Deuteranopia (green-blind)
#0046A5
Tritanopia (blue-blind)
#005C6E
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2942a7;
/* rgb */ color: rgb(41, 66, 167);
/* oklch */ color: oklch(42.6% 0.165 267.9);
Tailwind
colors: {
  custom: {
    50: '#7676c2',
    500: '#2942a7',
    950: '#000000',
  },
}
SCSS
$custom: #2942a7;
$custom-light: #7676c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2942a7",
  "rgb": {
    "r": 41,
    "g": 66,
    "b": 167
  },
  "hsl": {
    "h": 228.095,
    "s": 60.577,
    "l": 40.784
  },
  "oklch": {
    "l": 0.42555,
    "c": 0.16486,
    "h": 267.9
  },
  "luminance": 0.07158
}

Semantic roles & 50–950 ramp

primary
#2942A7
secondary
#C2B169
accent
#C444E4
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2942A7

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

Preview Lab → · Contrast checker → · Palette generator →

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