#2A2AAB#2A2AAB

#2A2AAB is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.9% C 0.197 H 272.5°. Best body text is #FFFFFF at 10.41:1 contrast (WCAG AA passes).

Color values

HEX#2A2AAB
RGBrgb(42, 42, 171)
HSLhsl(240, 61%, 42%)
HSVhsv(240, 75%, 67%)
CMYKcmyk(75.4%, 75.4%, 0%, 32.9%)
CIE-LABlab(26.98, 43.73, -67.95)
CIE-LCHlch(26.98, 80.81, 302.76°)
OKLaboklab(38.92% 0.0085 -0.1967)
OKLCHoklch(38.92% 0.197 272.5)
XYZxyz(9.1310, 5.0875, 39.0209)
Luminance0.0509 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2AAB #ABAB2A
analogous
#2A6BAB #2A2AAB #6B2AAB
triadic
#2A2AAB #AB2A2A #2AAB2A
tetradic
#2A2AAB #AB2A6B #ABAB2A #2AAB6B
square
#2A2AAB #AB2A6B #ABAB2A #2AAB6B
split-complementary
#2A2AAB #AB6B2A #6BAB2A
monochromatic
#121249 #1E1E7A #2A2AAB #4242D1 #7373DD

Accessibility & contrast

On white

10.41
#2A2AAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#2A2AAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2AAB
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2AAB#FFFFFF#000000##FFFFFF
##2A2AAB1.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AF
Deuteranopia (green-blind)
#0039A9
Tritanopia (blue-blind)
#005069
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2a2aab;
/* rgb */ color: rgb(42, 42, 171);
/* oklch */ color: oklch(38.9% 0.197 272.5);
Tailwind
colors: {
  custom: {
    50: '#7965c5',
    500: '#2a2aab',
    950: '#000000',
  },
}
SCSS
$custom: #2a2aab;
$custom-light: #7965c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2aab",
  "rgb": {
    "r": 42,
    "g": 42,
    "b": 171
  },
  "hsl": {
    "h": 240,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.38918,
    "c": 0.19685,
    "h": 272.5
  },
  "luminance": 0.05088
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A2AAB

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

Preview Lab → · Contrast checker → · Palette generator →

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