#2A2996#2A2996

#2A2996 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.5% C 0.172 H 274.3°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#2A2996
RGBrgb(42, 41, 150)
HSLhsl(241, 57%, 37%)
HSVhsv(241, 73%, 59%)
CMYKcmyk(72%, 72.7%, 0%, 41.2%)
CIE-LABlab(24.57, 37.17, -59.15)
CIE-LCHlch(24.57, 69.86, 302.14°)
OKLaboklab(36.55% 0.0127 -0.171)
OKLCHoklch(36.55% 0.172 274.3)
XYZxyz(7.2510, 4.2794, 29.2921)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2996 #959629
analogous
#295F96 #2A2996 #602996
triadic
#2A2996 #962A29 #29962A
tetradic
#2A2996 #96295F #959629 #299660
square
#2A2996 #96295F #959629 #299660
split-complementary
#2A2996 #966029 #5F9629
monochromatic
#0F0F36 #1D1C66 #2A2996 #3736C6 #6665D5

Accessibility & contrast

On white

11.31
#2A2996 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2A2996 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2996
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2996#FFFFFF#000000##FFFFFF
##2A29961.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F99
Deuteranopia (green-blind)
#003594
Tritanopia (blue-blind)
#00475C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2a2996;
/* rgb */ color: rgb(42, 41, 150);
/* oklch */ color: oklch(36.5% 0.172 274.3);
Tailwind
colors: {
  custom: {
    50: '#7464b6',
    500: '#2a2996',
    950: '#000000',
  },
}
SCSS
$custom: #2a2996;
$custom-light: #7464b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2996",
  "rgb": {
    "r": 42,
    "g": 41,
    "b": 150
  },
  "hsl": {
    "h": 240.55,
    "s": 57.068,
    "l": 37.451
  },
  "oklch": {
    "l": 0.36547,
    "c": 0.1715,
    "h": 274.3
  },
  "luminance": 0.0428
}

Semantic roles & 50–950 ramp

primary
#2A2996
secondary
#BABB60
accent
#E047DF
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #2A2996

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

Preview Lab → · Contrast checker → · Palette generator →

#2A2996 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva