#2A2EA7#2A2EA7

#2A2EA7 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 39.1% C 0.188 H 272.2°. Best body text is #FFFFFF at 10.26:1 contrast (WCAG AA passes).

Color values

HEX#2A2EA7
RGBrgb(42, 46, 167)
HSLhsl(238, 60%, 41%)
HSVhsv(238, 75%, 65%)
CMYKcmyk(74.9%, 72.5%, 0%, 34.5%)
CIE-LABlab(27.39, 40.04, -64.86)
CIE-LCHlch(27.39, 76.23, 301.69°)
OKLaboklab(39.09% 0.0073 -0.1877)
OKLCHoklch(39.09% 0.188 272.2)
XYZxyz(8.9045, 5.2353, 37.0930)
Luminance0.0524 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2EA7 #A7A32A
analogous
#2A6CA7 #2A2EA7 #642AA7
triadic
#2A2EA7 #A72A2E #2EA72A
tetradic
#2A2EA7 #A72A6C #A7A32A #2AA764
square
#2A2EA7 #A72A6C #A7A32A #2AA764
split-complementary
#2A2EA7 #A7642A #6CA72A
monochromatic
#111345 #1E2176 #2A2EA7 #3F44CF #7074DB

Accessibility & contrast

On white

10.26
#2A2EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#2A2EA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2EA7
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2EA7#FFFFFF#000000##FFFFFF
##2A2EA71.0010.262.0510.26
#FFFFFF10.261.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AB
Deuteranopia (green-blind)
#003BA5
Tritanopia (blue-blind)
#005067
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2a2ea7;
/* rgb */ color: rgb(42, 46, 167);
/* oklch */ color: oklch(39.1% 0.188 272.2);
Tailwind
colors: {
  custom: {
    50: '#7868c2',
    500: '#2a2ea7',
    950: '#000000',
  },
}
SCSS
$custom: #2a2ea7;
$custom-light: #7868c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2ea7",
  "rgb": {
    "r": 42,
    "g": 46,
    "b": 167
  },
  "hsl": {
    "h": 238.08,
    "s": 59.809,
    "l": 40.98
  },
  "oklch": {
    "l": 0.39087,
    "c": 0.18784,
    "h": 272.2
  },
  "luminance": 0.05236
}

Semantic roles & 50–950 ramp

primary
#2A2EA7
secondary
#C2BF6B
accent
#DE45E3
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0613
muted
#7C7A82

Preview Lab

Preview with #2A2EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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