#2A2EB7#2A2EB7

#2A2EB7 is a dark, highly saturated blue. Relative luminance 0.059; OKLCH L 40.8% C 0.208 H 271.3°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#2A2EB7
RGBrgb(42, 46, 183)
HSLhsl(238, 63%, 44%)
HSVhsv(238, 77%, 72%)
CMYKcmyk(77%, 74.9%, 0%, 28.2%)
CIE-LABlab(29.07, 45.48, -71.68)
CIE-LCHlch(29.07, 84.89, 302.39°)
OKLaboklab(40.78% 0.0047 -0.2075)
OKLCHoklch(40.78% 0.208 271.3)
XYZxyz(10.4762, 5.8640, 45.3703)
Luminance0.0587 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2EB7 #B7B32A
analogous
#2A75B7 #2A2EB7 #6D2AB7
triadic
#2A2EB7 #B72A2E #2EB72A
tetradic
#2A2EB7 #B72A75 #B7B32A #2AB76D
square
#2A2EB7 #B72A75 #B7B32A #2AB76D
split-complementary
#2A2EB7 #B76D2A #75B72A
monochromatic
#131553 #1F2185 #2A2EB7 #494DD5 #7B7EE1

Accessibility & contrast

On white

9.66
#2A2EB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#2A2EB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2EB7
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2EB7#FFFFFF#000000##FFFFFF
##2A2EB71.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BBB
Deuteranopia (green-blind)
#003DB5
Tritanopia (blue-blind)
#005670
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2a2eb7;
/* rgb */ color: rgb(42, 46, 183);
/* oklch */ color: oklch(40.8% 0.208 271.3);
Tailwind
colors: {
  custom: {
    50: '#7c68ce',
    500: '#2a2eb7',
    950: '#000000',
  },
}
SCSS
$custom: #2a2eb7;
$custom-light: #7c68ce;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2eb7",
  "rgb": {
    "r": 42,
    "g": 46,
    "b": 183
  },
  "hsl": {
    "h": 238.298,
    "s": 62.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.40776,
    "c": 0.20759,
    "h": 271.3
  },
  "luminance": 0.05865
}

Semantic roles & 50–950 ramp

primary
#2A2EB7
secondary
#C9C674
accent
#E142E6
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0614
muted
#7C7A82

Preview Lab

Preview with #2A2EB7

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

Preview Lab → · Contrast checker → · Palette generator →

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