#2942A2#2942A2

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

Color values

HEX#2942A2
RGBrgb(41, 66, 162)
HSLhsl(228, 60%, 40%)
HSVhsv(228, 75%, 64%)
CMYKcmyk(74.7%, 59.3%, 0%, 36.5%)
CIE-LABlab(31.75, 25.25, -54.71)
CIE-LCHlch(31.75, 60.26, 294.78°)
OKLaboklab(42.12% -0.0061 -0.1579)
OKLCHoklch(42.12% 0.158 267.8)
XYZxyz(9.3820, 6.9755, 35.0274)
Luminance0.0698 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2942A2 #A28929
analogous
#297FA2 #2942A2 #4C29A2
triadic
#2942A2 #A22942 #42A229
tetradic
#2942A2 #A2297F #A28929 #29A24C
square
#2942A2 #A2297F #A28929 #29A24C
split-complementary
#2942A2 #A24C29 #7FA229
monochromatic
#101A40 #1D2E71 #2942A2 #3B59CD #6C82DA

Accessibility & contrast

On white

8.77
#2942A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#2942A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2942A2
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2942A2#FFFFFF#000000##FFFFFF
##2942A21.008.772.408.77
#FFFFFF8.771.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A5
Deuteranopia (green-blind)
#0045A0
Tritanopia (blue-blind)
#005A6B
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2942a2;
/* rgb */ color: rgb(41, 66, 162);
/* oklch */ color: oklch(42.1% 0.158 267.8);
Tailwind
colors: {
  custom: {
    50: '#7576be',
    500: '#2942a2',
    950: '#000000',
  },
}
SCSS
$custom: #2942a2;
$custom-light: #7576be;
$custom-dark: #000000;
JSON
{
  "hex": "#2942a2",
  "rgb": {
    "r": 41,
    "g": 66,
    "b": 162
  },
  "hsl": {
    "h": 227.603,
    "s": 59.606,
    "l": 39.804
  },
  "oklch": {
    "l": 0.42121,
    "c": 0.15801,
    "h": 267.8
  },
  "luminance": 0.06976
}

Semantic roles & 50–950 ramp

primary
#2942A2
secondary
#C0AE67
accent
#C245E3
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2942A2

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

Preview Lab → · Contrast checker → · Palette generator →

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