#2A2EB2#2A2EB2

#2A2EB2 is a dark, highly saturated blue. Relative luminance 0.057; OKLCH L 40.2% C 0.202 H 271.6°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#2A2EB2
RGBrgb(42, 46, 178)
HSLhsl(238, 62%, 43%)
HSVhsv(238, 76%, 70%)
CMYKcmyk(76.4%, 74.2%, 0%, 30.2%)
CIE-LABlab(28.54, 43.80, -69.58)
CIE-LCHlch(28.54, 82.22, 302.19°)
OKLaboklab(40.24% 0.0055 -0.2014)
OKLCHoklch(40.24% 0.202 271.6)
XYZxyz(9.9650, 5.6595, 42.6781)
Luminance0.0566 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2EB2 #B2AE2A
analogous
#2A72B2 #2A2EB2 #6A2AB2
triadic
#2A2EB2 #B22A2E #2EB22A
tetradic
#2A2EB2 #B22A72 #B2AE2A #2AB26A
square
#2A2EB2 #B22A72 #B2AE2A #2AB26A
split-complementary
#2A2EB2 #B26A2A #72B22A
monochromatic
#13144F #1E2180 #2A2EB2 #464AD3 #777ADF

Accessibility & contrast

On white

9.85
#2A2EB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#2A2EB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2EB2
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2EB2#FFFFFF#000000##FFFFFF
##2A2EB21.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB6
Deuteranopia (green-blind)
#003DB0
Tritanopia (blue-blind)
#00546D
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2a2eb2;
/* rgb */ color: rgb(42, 46, 178);
/* oklch */ color: oklch(40.2% 0.202 271.6);
Tailwind
colors: {
  custom: {
    50: '#7b68ca',
    500: '#2a2eb2',
    950: '#000000',
  },
}
SCSS
$custom: #2a2eb2;
$custom-light: #7b68ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2eb2",
  "rgb": {
    "r": 42,
    "g": 46,
    "b": 178
  },
  "hsl": {
    "h": 238.235,
    "s": 61.818,
    "l": 43.137
  },
  "oklch": {
    "l": 0.40242,
    "c": 0.20151,
    "h": 271.6
  },
  "luminance": 0.05661
}

Semantic roles & 50–950 ramp

primary
#2A2EB2
secondary
#C7C471
accent
#E043E5
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2A2EB2

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

Preview Lab → · Contrast checker → · Palette generator →

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