#2A2A77#2A2A77

#2A2A77 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.7% C 0.128 H 277.0°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#2A2A77
RGBrgb(42, 42, 119)
HSLhsl(240, 48%, 32%)
HSVhsv(240, 65%, 47%)
CMYKcmyk(64.7%, 64.7%, 0%, 53.3%)
CIE-LABlab(21.87, 25.49, -44.17)
CIE-LCHlch(21.87, 51.00, 299.99°)
OKLaboklab(33.69% 0.0157 -0.1272)
OKLCHoklch(33.69% 0.128 277)
XYZxyz(5.1115, 3.4797, 17.8515)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2A77 #77772A
analogous
#2A5177 #2A2A77 #512A77
triadic
#2A2A77 #772A2A #2A772A
tetradic
#2A2A77 #772A51 #77772A #2A7751
square
#2A2A77 #772A51 #77772A #2A7751
split-complementary
#2A2A77 #77512A #51772A
monochromatic
#0A0A1D #1A1A4A #2A2A77 #3A3AA4 #5858C4

Accessibility & contrast

On white

12.38
#2A2A77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#2A2A77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2A77
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2A77#FFFFFF#000000##FFFFFF
##2A2A771.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003879
Deuteranopia (green-blind)
#003175
Tritanopia (blue-blind)
#003D4C
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2a2a77;
/* rgb */ color: rgb(42, 42, 119);
/* oklch */ color: oklch(33.7% 0.128 277.0);
Tailwind
colors: {
  custom: {
    50: '#6d639f',
    500: '#2a2a77',
    950: '#000000',
  },
}
SCSS
$custom: #2a2a77;
$custom-light: #6d639f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2a77",
  "rgb": {
    "r": 42,
    "g": 42,
    "b": 119
  },
  "hsl": {
    "h": 240,
    "s": 47.826,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33689,
    "c": 0.12812,
    "h": 277
  },
  "luminance": 0.0348
}

Semantic roles & 50–950 ramp

primary
#2A2A77
secondary
#A9A954
accent
#D750D7
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2A2A77

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

Preview Lab → · Contrast checker → · Palette generator →

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