#2A2EB4#2A2EB4

#2A2EB4 is a dark, highly saturated blue. Relative luminance 0.057; OKLCH L 40.5% C 0.204 H 271.5°. Best body text is #FFFFFF at 9.77:1 contrast (WCAG AA passes).

Color values

HEX#2A2EB4
RGBrgb(42, 46, 180)
HSLhsl(238, 62%, 44%)
HSVhsv(238, 77%, 71%)
CMYKcmyk(76.7%, 74.4%, 0%, 29.4%)
CIE-LABlab(28.75, 44.47, -70.42)
CIE-LCHlch(28.75, 83.29, 302.27°)
OKLaboklab(40.46% 0.0052 -0.2039)
OKLCHoklch(40.46% 0.204 271.5)
XYZxyz(10.1673, 5.7404, 43.7433)
Luminance0.0574 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2EB4 #B4B02A
analogous
#2A73B4 #2A2EB4 #6B2AB4
triadic
#2A2EB4 #B42A2E #2EB42A
tetradic
#2A2EB4 #B42A73 #B4B02A #2AB46B
square
#2A2EB4 #B42A73 #B4B02A #2AB46B
split-complementary
#2A2EB4 #B46B2A #73B42A
monochromatic
#131551 #1E2182 #2A2EB4 #474BD4 #797CE0

Accessibility & contrast

On white

9.77
#2A2EB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#2A2EB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2EB4
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2EB4#FFFFFF#000000##FFFFFF
##2A2EB41.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a2eb4;
/* rgb */ color: rgb(42, 46, 180);
/* oklch */ color: oklch(40.5% 0.204 271.5);
Tailwind
colors: {
  custom: {
    50: '#7b68cc',
    500: '#2a2eb4',
    950: '#000000',
  },
}
SCSS
$custom: #2a2eb4;
$custom-light: #7b68cc;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2eb4",
  "rgb": {
    "r": 42,
    "g": 46,
    "b": 180
  },
  "hsl": {
    "h": 238.261,
    "s": 62.162,
    "l": 43.529
  },
  "oklch": {
    "l": 0.40455,
    "c": 0.20395,
    "h": 271.5
  },
  "luminance": 0.05742
}

Semantic roles & 50–950 ramp

primary
#2A2EB4
secondary
#C8C572
accent
#E143E5
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0614
muted
#7C7A82

Preview Lab

Preview with #2A2EB4

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

Preview Lab → · Contrast checker → · Palette generator →

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