#2A2A7E#2A2A7E

#2A2A7E is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.3% C 0.138 H 276.3°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#2A2A7E
RGBrgb(42, 42, 126)
HSLhsl(240, 50%, 33%)
HSVhsv(240, 67%, 49%)
CMYKcmyk(66.7%, 66.7%, 0%, 50.6%)
CIE-LABlab(22.49, 28.03, -47.60)
CIE-LCHlch(22.49, 55.24, 300.49°)
OKLaboklab(34.34% 0.0152 -0.1372)
OKLCHoklch(34.34% 0.138 276.3)
XYZxyz(5.5475, 3.6541, 20.1476)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2A7E #7E7E2A
analogous
#2A547E #2A2A7E #542A7E
triadic
#2A2A7E #7E2A2A #2A7E2A
tetradic
#2A2A7E #7E2A54 #7E7E2A #2A7E54
square
#2A2A7E #7E2A54 #7E7E2A #2A7E54
split-complementary
#2A2A7E #7E542A #547E2A
monochromatic
#0B0B22 #1B1B50 #2A2A7E #3939AC #5A5AC8

Accessibility & contrast

On white

12.13
#2A2A7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2A2A7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2A7E
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2A7E#FFFFFF#000000##FFFFFF
##2A2A7E1.0012.131.7312.13
#FFFFFF12.131.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003981
Deuteranopia (green-blind)
#00327C
Tritanopia (blue-blind)
#004050
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2a2a7e;
/* rgb */ color: rgb(42, 42, 126);
/* oklch */ color: oklch(34.3% 0.138 276.3);
Tailwind
colors: {
  custom: {
    50: '#6f64a4',
    500: '#2a2a7e',
    950: '#000000',
  },
}
SCSS
$custom: #2a2a7e;
$custom-light: #6f64a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2a7e",
  "rgb": {
    "r": 42,
    "g": 42,
    "b": 126
  },
  "hsl": {
    "h": 240,
    "s": 50,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34338,
    "c": 0.13806,
    "h": 276.3
  },
  "luminance": 0.03655
}

Semantic roles & 50–950 ramp

primary
#2A2A7E
secondary
#AEAE56
accent
#DA4EDA
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2A2A7E

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

Preview Lab → · Contrast checker → · Palette generator →

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