#2A2A76#2A2A76

#2A2A76 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.6% C 0.127 H 277.1°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#2A2A76
RGBrgb(42, 42, 118)
HSLhsl(240, 48%, 31%)
HSVhsv(240, 64%, 46%)
CMYKcmyk(64.4%, 64.4%, 0%, 53.7%)
CIE-LABlab(21.78, 25.13, -43.67)
CIE-LCHlch(21.78, 50.39, 299.92°)
OKLaboklab(33.6% 0.0157 -0.1257)
OKLCHoklch(33.6% 0.127 277.1)
XYZxyz(5.0518, 3.4558, 17.5368)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2A76 #76762A
analogous
#2A5076 #2A2A76 #502A76
triadic
#2A2A76 #762A2A #2A762A
tetradic
#2A2A76 #762A50 #76762A #2A7650
square
#2A2A76 #762A50 #76762A #2A7650
split-complementary
#2A2A76 #76502A #50762A
monochromatic
#0A0A1C #1A1A49 #2A2A76 #3A3AA3 #5757C3

Accessibility & contrast

On white

12.42
#2A2A76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2A2A76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2A76
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2A76#FFFFFF#000000##FFFFFF
##2A2A761.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a2a76;
/* rgb */ color: rgb(42, 42, 118);
/* oklch */ color: oklch(33.6% 0.127 277.1);
Tailwind
colors: {
  custom: {
    50: '#6d639e',
    500: '#2a2a76',
    950: '#000000',
  },
}
SCSS
$custom: #2a2a76;
$custom-light: #6d639e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2a76",
  "rgb": {
    "r": 42,
    "g": 42,
    "b": 118
  },
  "hsl": {
    "h": 240,
    "s": 47.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33598,
    "c": 0.12668,
    "h": 277.1
  },
  "luminance": 0.03456
}

Semantic roles & 50–950 ramp

primary
#2A2A76
secondary
#A8A854
accent
#D751D7
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2A2A76

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

Preview Lab → · Contrast checker → · Palette generator →

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