#2A2EA4#2A2EA4

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

Color values

HEX#2A2EA4
RGBrgb(42, 46, 164)
HSLhsl(238, 59%, 40%)
HSVhsv(238, 74%, 64%)
CMYKcmyk(74.4%, 72%, 0%, 35.7%)
CIE-LABlab(27.09, 39.00, -63.55)
CIE-LCHlch(27.09, 74.57, 301.54°)
OKLaboklab(38.78% 0.0077 -0.1839)
OKLCHoklch(38.78% 0.184 272.4)
XYZxyz(8.6304, 5.1257, 35.6493)
Luminance0.0513 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2EA4 #A4A02A
analogous
#2A6BA4 #2A2EA4 #632AA4
triadic
#2A2EA4 #A42A2E #2EA42A
tetradic
#2A2EA4 #A42A6B #A4A02A #2AA463
square
#2A2EA4 #A42A6B #A4A02A #2AA463
split-complementary
#2A2EA4 #A4632A #6BA42A
monochromatic
#111343 #1E2073 #2A2EA4 #3E42CD #6E72DA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A2EA4#FFFFFF#000000##FFFFFF
##2A2EA41.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)
#0046A8
Deuteranopia (green-blind)
#003AA2
Tritanopia (blue-blind)
#004F66
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2a2ea4;
/* rgb */ color: rgb(42, 46, 164);
/* oklch */ color: oklch(38.8% 0.184 272.4);
Tailwind
colors: {
  custom: {
    50: '#7768c0',
    500: '#2a2ea4',
    950: '#000000',
  },
}
SCSS
$custom: #2a2ea4;
$custom-light: #7768c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2ea4",
  "rgb": {
    "r": 42,
    "g": 46,
    "b": 164
  },
  "hsl": {
    "h": 238.033,
    "s": 59.223,
    "l": 40.392
  },
  "oklch": {
    "l": 0.38776,
    "c": 0.18404,
    "h": 272.4
  },
  "luminance": 0.05127
}

Semantic roles & 50–950 ramp

primary
#2A2EA4
secondary
#C1BE69
accent
#DD45E2
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2A2EA4

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

Preview Lab → · Contrast checker → · Palette generator →

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