#2A2EB8#2A2EB8

#2A2EB8 is a dark, highly saturated blue. Relative luminance 0.059; OKLCH L 40.9% C 0.209 H 271.2°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#2A2EB8
RGBrgb(42, 46, 184)
HSLhsl(238, 63%, 44%)
HSVhsv(238, 77%, 72%)
CMYKcmyk(77.2%, 75%, 0%, 27.8%)
CIE-LABlab(29.17, 45.81, -72.10)
CIE-LCHlch(29.17, 85.42, 302.43°)
OKLaboklab(40.88% 0.0045 -0.2087)
OKLCHoklch(40.88% 0.209 271.2)
XYZxyz(10.5806, 5.9058, 45.9204)
Luminance0.0591 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2EB8 #B8B42A
analogous
#2A75B8 #2A2EB8 #6D2AB8
triadic
#2A2EB8 #B82A2E #2EB82A
tetradic
#2A2EB8 #B82A75 #B8B42A #2AB86D
square
#2A2EB8 #B82A75 #B8B42A #2AB86D
split-complementary
#2A2EB8 #B86D2A #75B82A
monochromatic
#131554 #1F2286 #2A2EB8 #4A4ED6 #7B7EE1

Accessibility & contrast

On white

9.63
#2A2EB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#2A2EB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2EB8
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2EB8#FFFFFF#000000##FFFFFF
##2A2EB81.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CBC
Deuteranopia (green-blind)
#003EB6
Tritanopia (blue-blind)
#005771
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2a2eb8;
/* rgb */ color: rgb(42, 46, 184);
/* oklch */ color: oklch(40.9% 0.209 271.2);
Tailwind
colors: {
  custom: {
    50: '#7c68cf',
    500: '#2a2eb8',
    950: '#000000',
  },
}
SCSS
$custom: #2a2eb8;
$custom-light: #7c68cf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2eb8",
  "rgb": {
    "r": 42,
    "g": 46,
    "b": 184
  },
  "hsl": {
    "h": 238.31,
    "s": 62.832,
    "l": 44.314
  },
  "oklch": {
    "l": 0.40883,
    "c": 0.2088,
    "h": 271.2
  },
  "luminance": 0.05907
}

Semantic roles & 50–950 ramp

primary
#2A2EB8
secondary
#C9C775
accent
#E142E6
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0B0614
muted
#7C7A82

Preview Lab

Preview with #2A2EB8

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

Preview Lab → · Contrast checker → · Palette generator →

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