#2A2AA4#2A2AA4

#2A2AA4 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.2% C 0.188 H 273.0°. Best body text is #FFFFFF at 10.68:1 contrast (WCAG AA passes).

Color values

HEX#2A2AA4
RGBrgb(42, 42, 164)
HSLhsl(240, 59%, 40%)
HSVhsv(240, 74%, 64%)
CMYKcmyk(74.4%, 74.4%, 0%, 35.7%)
CIE-LABlab(26.24, 41.37, -64.96)
CIE-LCHlch(26.24, 77.01, 302.49°)
OKLaboklab(38.17% 0.0098 -0.1879)
OKLCHoklch(38.17% 0.188 273)
XYZxyz(8.4814, 4.8276, 35.5996)
Luminance0.0483 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2AA4 #A4A42A
analogous
#2A67A4 #2A2AA4 #672AA4
triadic
#2A2AA4 #A42A2A #2AA42A
tetradic
#2A2AA4 #A42A67 #A4A42A #2AA467
square
#2A2AA4 #A42A67 #A4A42A #2AA467
split-complementary
#2A2AA4 #A4672A #67A42A
monochromatic
#111143 #1E1E73 #2A2AA4 #3E3ECD #6E6EDA

Accessibility & contrast

On white

10.68
#2A2AA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#2A2AA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2AA4
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2AA4#FFFFFF#000000##FFFFFF
##2A2AA41.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A8
Deuteranopia (green-blind)
#0038A2
Tritanopia (blue-blind)
#004D65
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2a2aa4;
/* rgb */ color: rgb(42, 42, 164);
/* oklch */ color: oklch(38.2% 0.188 273.0);
Tailwind
colors: {
  custom: {
    50: '#7865c0',
    500: '#2a2aa4',
    950: '#000000',
  },
}
SCSS
$custom: #2a2aa4;
$custom-light: #7865c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2aa4",
  "rgb": {
    "r": 42,
    "g": 42,
    "b": 164
  },
  "hsl": {
    "h": 240,
    "s": 59.223,
    "l": 40.392
  },
  "oklch": {
    "l": 0.38168,
    "c": 0.1882,
    "h": 273
  },
  "luminance": 0.04829
}

Semantic roles & 50–950 ramp

primary
#2A2AA4
secondary
#C1C169
accent
#E245E2
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2A2AA4

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

Preview Lab → · Contrast checker → · Palette generator →

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