#2A2A74#2A2A74

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

Color values

HEX#2A2A74
RGBrgb(42, 42, 116)
HSLhsl(240, 47%, 31%)
HSVhsv(240, 64%, 45%)
CMYKcmyk(63.8%, 63.8%, 0%, 54.5%)
CIE-LABlab(21.61, 24.40, -42.67)
CIE-LCHlch(21.61, 49.16, 299.76°)
OKLaboklab(33.42% 0.0158 -0.1228)
OKLCHoklch(33.42% 0.124 277.3)
XYZxyz(4.9342, 3.4087, 16.9175)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2A74 #74742A
analogous
#2A4F74 #2A2A74 #4F2A74
triadic
#2A2A74 #742A2A #2A742A
tetradic
#2A2A74 #742A4F #74742A #2A744F
square
#2A2A74 #742A4F #74742A #2A744F
split-complementary
#2A2A74 #744F2A #4F742A
monochromatic
#09091A #1A1A47 #2A2A74 #3A3AA1 #5656C2

Accessibility & contrast

On white

12.49
#2A2A74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A2A74
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2A74#FFFFFF#000000##FFFFFF
##2A2A741.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003776
Deuteranopia (green-blind)
#003173
Tritanopia (blue-blind)
#003C4A
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2a2a74;
/* rgb */ color: rgb(42, 42, 116);
/* oklch */ color: oklch(33.4% 0.124 277.3);
Tailwind
colors: {
  custom: {
    50: '#6c639d',
    500: '#2a2a74',
    950: '#000000',
  },
}
SCSS
$custom: #2a2a74;
$custom-light: #6c639d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2a74",
  "rgb": {
    "r": 42,
    "g": 42,
    "b": 116
  },
  "hsl": {
    "h": 240,
    "s": 46.835,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33418,
    "c": 0.12378,
    "h": 277.3
  },
  "luminance": 0.03409
}

Semantic roles & 50–950 ramp

primary
#2A2A74
secondary
#A6A654
accent
#D651D6
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #2A2A74

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

Preview Lab → · Contrast checker → · Palette generator →

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