#2942B7#2942B7

#2942B7 is a dark, vivid blue. Relative luminance 0.078; OKLCH L 44.0% C 0.186 H 268.1°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#2942B7
RGBrgb(41, 66, 183)
HSLhsl(229, 63%, 44%)
HSVhsv(229, 78%, 72%)
CMYKcmyk(77.6%, 63.9%, 0%, 28.2%)
CIE-LABlab(33.53, 33.13, -64.33)
CIE-LCHlch(33.53, 72.36, 297.25°)
OKLaboklab(43.99% -0.0062 -0.1861)
OKLCHoklch(43.99% 0.186 268.1)
XYZxyz(11.4069, 7.7855, 45.6921)
Luminance0.0779 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2942B7 #B79E29
analogous
#2989B7 #2942B7 #5729B7
triadic
#2942B7 #B72942 #42B729
tetradic
#2942B7 #B72989 #B79E29 #29B757
square
#2942B7 #B72989 #B79E29 #29B757
split-complementary
#2942B7 #B75729 #89B729
monochromatic
#131E53 #1E3085 #2942B7 #4760D6 #798CE1

Accessibility & contrast

On white

8.21
#2942B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#2942B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2942B7
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2942B7#FFFFFF#000000##FFFFFF
##2942B71.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BB
Deuteranopia (green-blind)
#0048B5
Tritanopia (blue-blind)
#006176
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2942b7;
/* rgb */ color: rgb(41, 66, 183);
/* oklch */ color: oklch(44.0% 0.186 268.1);
Tailwind
colors: {
  custom: {
    50: '#7a76ce',
    500: '#2942b7',
    950: '#000000',
  },
}
SCSS
$custom: #2942b7;
$custom-light: #7a76ce;
$custom-dark: #000000;
JSON
{
  "hex": "#2942b7",
  "rgb": {
    "r": 41,
    "g": 66,
    "b": 183
  },
  "hsl": {
    "h": 229.437,
    "s": 63.393,
    "l": 43.922
  },
  "oklch": {
    "l": 0.43994,
    "c": 0.18621,
    "h": 268.1
  },
  "luminance": 0.07787
}

Semantic roles & 50–950 ramp

primary
#2942B7
secondary
#C9BA73
accent
#C941E6
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0814
muted
#7C7B82

Preview Lab

Preview with #2942B7

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

Preview Lab → · Contrast checker → · Palette generator →

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