#2A2076#2A2076

#2A2076 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.8% C 0.140 H 280.2°. Best body text is #FFFFFF at 13.40:1 contrast (WCAG AA passes).

Color values

HEX#2A2076
RGBrgb(42, 32, 118)
HSLhsl(247, 57%, 29%)
HSVhsv(247, 73%, 46%)
CMYKcmyk(64.4%, 72.9%, 0%, 53.7%)
CIE-LABlab(19.36, 31.62, -47.63)
CIE-LCHlch(19.36, 57.17, 303.58°)
OKLaboklab(31.84% 0.0247 -0.1373)
OKLCHoklch(31.84% 0.14 280.2)
XYZxyz(4.7403, 2.8329, 17.4330)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2076 #6C7620
analogous
#204176 #2A2076 #552076
triadic
#2A2076 #762A20 #20762A
tetradic
#2A2076 #762041 #6C7620 #207655
square
#2A2076 #762041 #6C7620 #207655
split-complementary
#2A2076 #765520 #417620
monochromatic
#090718 #191346 #2A2076 #3B2DA6 #5444CC

Accessibility & contrast

On white

13.40
#2A2076 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2A2076 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2076
13.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2076#FFFFFF#000000##FFFFFF
##2A20761.0013.401.5713.40
#FFFFFF13.401.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003279
Deuteranopia (green-blind)
#002C74
Tritanopia (blue-blind)
#003748
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2a2076;
/* rgb */ color: rgb(42, 32, 118);
/* oklch */ color: oklch(31.8% 0.140 280.2);
Tailwind
colors: {
  custom: {
    50: '#6e5d9e',
    500: '#2a2076',
    950: '#000000',
  },
}
SCSS
$custom: #2a2076;
$custom-light: #6e5d9e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2076",
  "rgb": {
    "r": 42,
    "g": 32,
    "b": 118
  },
  "hsl": {
    "h": 246.977,
    "s": 57.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.31841,
    "c": 0.13954,
    "h": 280.2
  },
  "luminance": 0.02833
}

Semantic roles & 50–950 ramp

primary
#2A2076
secondary
#9EA948
accent
#E147CF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2A2076

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

Preview Lab → · Contrast checker → · Palette generator →

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