#2A2EB5#2A2EB5

#2A2EB5 is a dark, highly saturated blue. Relative luminance 0.058; OKLCH L 40.6% C 0.205 H 271.4°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#2A2EB5
RGBrgb(42, 46, 181)
HSLhsl(238, 62%, 44%)
HSVhsv(238, 77%, 71%)
CMYKcmyk(76.8%, 74.6%, 0%, 29%)
CIE-LABlab(28.85, 44.81, -70.84)
CIE-LCHlch(28.85, 83.83, 302.31°)
OKLaboklab(40.56% 0.005 -0.2051)
OKLCHoklch(40.56% 0.205 271.4)
XYZxyz(10.2695, 5.7813, 44.2818)
Luminance0.0578 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2EB5 #B5B12A
analogous
#2A73B5 #2A2EB5 #6B2AB5
triadic
#2A2EB5 #B52A2E #2EB52A
tetradic
#2A2EB5 #B52A73 #B5B12A #2AB56B
square
#2A2EB5 #B52A73 #B5B12A #2AB56B
split-complementary
#2A2EB5 #B56B2A #73B52A
monochromatic
#131552 #1E2183 #2A2EB5 #484CD4 #797CE0

Accessibility & contrast

On white

9.74
#2A2EB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#2A2EB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2EB5
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2EB5#FFFFFF#000000##FFFFFF
##2A2EB51.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB9
Deuteranopia (green-blind)
#003DB3
Tritanopia (blue-blind)
#00556F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2a2eb5;
/* rgb */ color: rgb(42, 46, 181);
/* oklch */ color: oklch(40.6% 0.205 271.4);
Tailwind
colors: {
  custom: {
    50: '#7b68cc',
    500: '#2a2eb5',
    950: '#000000',
  },
}
SCSS
$custom: #2a2eb5;
$custom-light: #7b68cc;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2eb5",
  "rgb": {
    "r": 42,
    "g": 46,
    "b": 181
  },
  "hsl": {
    "h": 238.273,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.40561,
    "c": 0.20517,
    "h": 271.4
  },
  "luminance": 0.05782
}

Semantic roles & 50–950 ramp

primary
#2A2EB5
secondary
#C8C673
accent
#E142E5
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0614
muted
#7C7A82

Preview Lab

Preview with #2A2EB5

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

Preview Lab → · Contrast checker → · Palette generator →

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