#2A2A7A#2A2A7A

#2A2A7A is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.0% C 0.132 H 276.7°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#2A2A7A
RGBrgb(42, 42, 122)
HSLhsl(240, 49%, 32%)
HSVhsv(240, 66%, 48%)
CMYKcmyk(65.6%, 65.6%, 0%, 52.2%)
CIE-LABlab(22.13, 26.58, -45.65)
CIE-LCHlch(22.13, 52.83, 300.21°)
OKLaboklab(33.96% 0.0155 -0.1315)
OKLCHoklch(33.96% 0.132 276.7)
XYZxyz(5.2945, 3.5529, 18.8153)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2A7A #7A7A2A
analogous
#2A527A #2A2A7A #522A7A
triadic
#2A2A7A #7A2A2A #2A7A2A
tetradic
#2A2A7A #7A2A52 #7A7A2A #2A7A52
square
#2A2A7A #7A2A52 #7A7A2A #2A7A52
split-complementary
#2A2A7A #7A522A #527A2A
monochromatic
#0B0B1F #1A1A4C #2A2A7A #3A3AA8 #5959C6

Accessibility & contrast

On white

12.28
#2A2A7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2A2A7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2A7A
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2A7A#FFFFFF#000000##FFFFFF
##2A2A7A1.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387D
Deuteranopia (green-blind)
#003178
Tritanopia (blue-blind)
#003E4E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2a2a7a;
/* rgb */ color: rgb(42, 42, 122);
/* oklch */ color: oklch(34.0% 0.132 276.7);
Tailwind
colors: {
  custom: {
    50: '#6e64a1',
    500: '#2a2a7a',
    950: '#000000',
  },
}
SCSS
$custom: #2a2a7a;
$custom-light: #6e64a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2a7a",
  "rgb": {
    "r": 42,
    "g": 42,
    "b": 122
  },
  "hsl": {
    "h": 240,
    "s": 48.78,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33964,
    "c": 0.13242,
    "h": 276.7
  },
  "luminance": 0.03553
}

Semantic roles & 50–950 ramp

primary
#2A2A7A
secondary
#ABAB55
accent
#D84FD8
background
#F7F5FA
surface
#EDEAF3
border
#C8C6CD
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2A2A7A

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

Preview Lab → · Contrast checker → · Palette generator →

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