#2A2EA5#2A2EA5

#2A2EA5 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.9% C 0.185 H 272.3°. Best body text is #FFFFFF at 10.33:1 contrast (WCAG AA passes).

Color values

HEX#2A2EA5
RGBrgb(42, 46, 165)
HSLhsl(238, 59%, 41%)
HSVhsv(238, 75%, 65%)
CMYKcmyk(74.5%, 72.1%, 0%, 35.3%)
CIE-LABlab(27.19, 39.35, -63.99)
CIE-LCHlch(27.19, 75.12, 301.59°)
OKLaboklab(38.88% 0.0076 -0.1852)
OKLCHoklch(38.88% 0.185 272.3)
XYZxyz(8.7211, 5.1619, 36.1268)
Luminance0.0516 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2EA5 #A5A12A
analogous
#2A6BA5 #2A2EA5 #632AA5
triadic
#2A2EA5 #A52A2E #2EA52A
tetradic
#2A2EA5 #A52A6B #A5A12A #2AA563
square
#2A2EA5 #A52A6B #A5A12A #2AA563
split-complementary
#2A2EA5 #A5632A #6BA52A
monochromatic
#111343 #1E2074 #2A2EA5 #3E43CE #6F73DA

Accessibility & contrast

On white

10.33
#2A2EA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A2EA5
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2EA5#FFFFFF#000000##FFFFFF
##2A2EA51.0010.332.0310.33
#FFFFFF10.331.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A9
Deuteranopia (green-blind)
#003AA3
Tritanopia (blue-blind)
#004F66
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2a2ea5;
/* rgb */ color: rgb(42, 46, 165);
/* oklch */ color: oklch(38.9% 0.185 272.3);
Tailwind
colors: {
  custom: {
    50: '#7768c1',
    500: '#2a2ea5',
    950: '#000000',
  },
}
SCSS
$custom: #2a2ea5;
$custom-light: #7768c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2ea5",
  "rgb": {
    "r": 42,
    "g": 46,
    "b": 165
  },
  "hsl": {
    "h": 238.049,
    "s": 59.42,
    "l": 40.588
  },
  "oklch": {
    "l": 0.3888,
    "c": 0.18531,
    "h": 272.3
  },
  "luminance": 0.05163
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A2EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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