#2A2AAC#2A2AAC

#2A2AAC is a dark, vivid blue. Relative luminance 0.051; OKLCH L 39.0% C 0.198 H 272.4°. Best body text is #FFFFFF at 10.37:1 contrast (WCAG AA passes).

Color values

HEX#2A2AAC
RGBrgb(42, 42, 172)
HSLhsl(240, 61%, 42%)
HSVhsv(240, 76%, 67%)
CMYKcmyk(75.6%, 75.6%, 0%, 32.5%)
CIE-LABlab(27.09, 44.06, -68.38)
CIE-LCHlch(27.09, 81.34, 302.80°)
OKLaboklab(39.03% 0.0083 -0.1979)
OKLCHoklch(39.03% 0.198 272.4)
XYZxyz(9.2267, 5.1258, 39.5248)
Luminance0.0513 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2AAC #ACAC2A
analogous
#2A6BAC #2A2AAC #6B2AAC
triadic
#2A2AAC #AC2A2A #2AAC2A
tetradic
#2A2AAC #AC2A6B #ACAC2A #2AAC6B
square
#2A2AAC #AC2A6B #ACAC2A #2AAC6B
split-complementary
#2A2AAC #AC6B2A #6BAC2A
monochromatic
#12124A #1E1E7B #2A2AAC #4242D1 #7373DD

Accessibility & contrast

On white

10.37
#2A2AAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#2A2AAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2AAC
10.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2AAC#FFFFFF#000000##FFFFFF
##2A2AAC1.0010.372.0310.37
#FFFFFF10.371.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046B0
Deuteranopia (green-blind)
#003AAA
Tritanopia (blue-blind)
#005069
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2a2aac;
/* rgb */ color: rgb(42, 42, 172);
/* oklch */ color: oklch(39.0% 0.198 272.4);
Tailwind
colors: {
  custom: {
    50: '#7a65c6',
    500: '#2a2aac',
    950: '#000000',
  },
}
SCSS
$custom: #2a2aac;
$custom-light: #7a65c6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2aac",
  "rgb": {
    "r": 42,
    "g": 42,
    "b": 172
  },
  "hsl": {
    "h": 240,
    "s": 60.748,
    "l": 41.961
  },
  "oklch": {
    "l": 0.39026,
    "c": 0.19807,
    "h": 272.4
  },
  "luminance": 0.05127
}

Semantic roles & 50–950 ramp

primary
#2A2AAC
secondary
#C4C46D
accent
#E444E4
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2A2AAC

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

Preview Lab → · Contrast checker → · Palette generator →

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