#2A2A7D#2A2A7D

#2A2A7D is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.2% C 0.137 H 276.4°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#2A2A7D
RGBrgb(42, 42, 125)
HSLhsl(240, 50%, 33%)
HSVhsv(240, 66%, 49%)
CMYKcmyk(66.4%, 66.4%, 0%, 51%)
CIE-LABlab(22.40, 27.67, -47.12)
CIE-LCHlch(22.40, 54.64, 300.42°)
OKLaboklab(34.24% 0.0152 -0.1358)
OKLCHoklch(34.24% 0.137 276.4)
XYZxyz(5.4833, 3.6284, 19.8095)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2A7D #7D7D2A
analogous
#2A537D #2A2A7D #532A7D
triadic
#2A2A7D #7D2A2A #2A7D2A
tetradic
#2A2A7D #7D2A53 #7D7D2A #2A7D53
square
#2A2A7D #7D2A53 #7D7D2A #2A7D53
split-complementary
#2A2A7D #7D532A #537D2A
monochromatic
#0B0B21 #1B1B4F #2A2A7D #3939AB #5A5AC8

Accessibility & contrast

On white

12.17
#2A2A7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A2A7D
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2A7D#FFFFFF#000000##FFFFFF
##2A2A7D1.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003980
Deuteranopia (green-blind)
#00327B
Tritanopia (blue-blind)
#003F4F
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2a2a7d;
/* rgb */ color: rgb(42, 42, 125);
/* oklch */ color: oklch(34.2% 0.137 276.4);
Tailwind
colors: {
  custom: {
    50: '#6e64a3',
    500: '#2a2a7d',
    950: '#000000',
  },
}
SCSS
$custom: #2a2a7d;
$custom-light: #6e64a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2a7d",
  "rgb": {
    "r": 42,
    "g": 42,
    "b": 125
  },
  "hsl": {
    "h": 240,
    "s": 49.701,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34244,
    "c": 0.13666,
    "h": 276.4
  },
  "luminance": 0.03629
}

Semantic roles & 50–950 ramp

primary
#2A2A7D
secondary
#ADAD56
accent
#D94FD9
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2A2A7D

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

Preview Lab → · Contrast checker → · Palette generator →

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