#2942AB#2942AB

#2942AB is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.9% C 0.170 H 268.0°. Best body text is #FFFFFF at 8.53:1 contrast (WCAG AA passes).

Color values

HEX#2942AB
RGBrgb(41, 66, 171)
HSLhsl(228, 61%, 42%)
HSVhsv(228, 76%, 67%)
CMYKcmyk(76%, 61.4%, 0%, 32.9%)
CIE-LABlab(32.50, 28.66, -58.90)
CIE-LCHlch(32.50, 65.50, 295.94°)
OKLaboklab(42.91% -0.006 -0.1702)
OKLCHoklch(42.91% 0.17 268)
XYZxyz(10.2108, 7.3070, 39.3924)
Luminance0.0731 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2942AB #AB9229
analogous
#2983AB #2942AB #5129AB
triadic
#2942AB #AB2942 #42AB29
tetradic
#2942AB #AB2983 #AB9229 #29AB51
square
#2942AB #AB2983 #AB9229 #29AB51
split-complementary
#2942AB #AB5129 #83AB29
monochromatic
#111C48 #1D2F7A #2942AB #405CD1 #7186DD

Accessibility & contrast

On white

8.53
#2942AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#2942AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2942AB
8.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2942AB#FFFFFF#000000##FFFFFF
##2942AB1.008.532.468.53
#FFFFFF8.531.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AE
Deuteranopia (green-blind)
#0047A9
Tritanopia (blue-blind)
#005D70
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2942ab;
/* rgb */ color: rgb(41, 66, 171);
/* oklch */ color: oklch(42.9% 0.170 268.0);
Tailwind
colors: {
  custom: {
    50: '#7776c5',
    500: '#2942ab',
    950: '#000000',
  },
}
SCSS
$custom: #2942ab;
$custom-light: #7776c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2942ab",
  "rgb": {
    "r": 41,
    "g": 66,
    "b": 171
  },
  "hsl": {
    "h": 228.462,
    "s": 61.321,
    "l": 41.569
  },
  "oklch": {
    "l": 0.42908,
    "c": 0.17029,
    "h": 268
  },
  "luminance": 0.07308
}

Semantic roles & 50–950 ramp

primary
#2942AB
secondary
#C4B36C
accent
#C543E4
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2942AB

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

Preview Lab → · Contrast checker → · Palette generator →

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