#2A2976#2A2976

#2A2976 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.4% C 0.128 H 277.5°. Best body text is #FFFFFF at 12.52:1 contrast (WCAG AA passes).

Color values

HEX#2A2976
RGBrgb(42, 41, 118)
HSLhsl(241, 48%, 31%)
HSVhsv(241, 65%, 46%)
CMYKcmyk(64.4%, 65.3%, 0%, 53.7%)
CIE-LABlab(21.53, 25.80, -44.09)
CIE-LCHlch(21.53, 51.09, 300.34°)
OKLaboklab(33.41% 0.0167 -0.1269)
OKLCHoklch(33.41% 0.128 277.5)
XYZxyz(5.0167, 3.3857, 17.5252)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2976 #757629
analogous
#294E76 #2A2976 #502976
triadic
#2A2976 #762A29 #29762A
tetradic
#2A2976 #76294E #757629 #297650
square
#2A2976 #76294E #757629 #297650
split-complementary
#2A2976 #765029 #4E7629
monochromatic
#0A091B #1A1949 #2A2976 #3A39A3 #5755C4

Accessibility & contrast

On white

12.52
#2A2976 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#2A2976 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2976
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2976#FFFFFF#000000##FFFFFF
##2A29761.0012.521.6812.52
#FFFFFF12.521.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003778
Deuteranopia (green-blind)
#003074
Tritanopia (blue-blind)
#003C4B
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2a2976;
/* rgb */ color: rgb(42, 41, 118);
/* oklch */ color: oklch(33.4% 0.128 277.5);
Tailwind
colors: {
  custom: {
    50: '#6d639e',
    500: '#2a2976',
    950: '#000000',
  },
}
SCSS
$custom: #2a2976;
$custom-light: #6d639e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2976",
  "rgb": {
    "r": 42,
    "g": 41,
    "b": 118
  },
  "hsl": {
    "h": 240.779,
    "s": 48.428,
    "l": 31.176
  },
  "oklch": {
    "l": 0.3341,
    "c": 0.12803,
    "h": 277.5
  },
  "luminance": 0.03386
}

Semantic roles & 50–950 ramp

primary
#2A2976
secondary
#A7A853
accent
#D850D6
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2A2976

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

Preview Lab → · Contrast checker → · Palette generator →

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