#2A2EA2#2A2EA2

#2A2EA2 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.6% C 0.181 H 272.5°. Best body text is #FFFFFF at 10.44:1 contrast (WCAG AA passes).

Color values

HEX#2A2EA2
RGBrgb(42, 46, 162)
HSLhsl(238, 59%, 40%)
HSVhsv(238, 74%, 64%)
CMYKcmyk(74.1%, 71.6%, 0%, 36.5%)
CIE-LABlab(26.89, 38.30, -62.67)
CIE-LCHlch(26.89, 73.45, 301.43°)
OKLaboklab(38.57% 0.008 -0.1813)
OKLCHoklch(38.57% 0.181 272.5)
XYZxyz(8.4512, 5.0540, 34.7055)
Luminance0.0505 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2EA2 #A29E2A
analogous
#2A6AA2 #2A2EA2 #622AA2
triadic
#2A2EA2 #A22A2E #2EA22A
tetradic
#2A2EA2 #A22A6A #A29E2A #2AA262
square
#2A2EA2 #A22A6A #A29E2A #2AA262
split-complementary
#2A2EA2 #A2622A #6AA22A
monochromatic
#111241 #1D2071 #2A2EA2 #3D41CD #6D71D9

Accessibility & contrast

On white

10.44
#2A2EA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#2A2EA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2EA2
10.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2EA2#FFFFFF#000000##FFFFFF
##2A2EA21.0010.442.0110.44
#FFFFFF10.441.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A5
Deuteranopia (green-blind)
#003AA0
Tritanopia (blue-blind)
#004E65
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2a2ea2;
/* rgb */ color: rgb(42, 46, 162);
/* oklch */ color: oklch(38.6% 0.181 272.5);
Tailwind
colors: {
  custom: {
    50: '#7768bf',
    500: '#2a2ea2',
    950: '#000000',
  },
}
SCSS
$custom: #2a2ea2;
$custom-light: #7768bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2ea2",
  "rgb": {
    "r": 42,
    "g": 46,
    "b": 162
  },
  "hsl": {
    "h": 238,
    "s": 58.824,
    "l": 40
  },
  "oklch": {
    "l": 0.38571,
    "c": 0.18149,
    "h": 272.5
  },
  "luminance": 0.05055
}

Semantic roles & 50–950 ramp

primary
#2A2EA2
secondary
#C0BD68
accent
#DD46E2
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2A2EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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