#2A2EA3#2A2EA3

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

Color values

HEX#2A2EA3
RGBrgb(42, 46, 163)
HSLhsl(238, 59%, 40%)
HSVhsv(238, 74%, 64%)
CMYKcmyk(74.2%, 71.8%, 0%, 36.1%)
CIE-LABlab(26.99, 38.65, -63.11)
CIE-LCHlch(26.99, 74.01, 301.49°)
OKLaboklab(38.67% 0.0079 -0.1826)
OKLCHoklch(38.67% 0.183 272.5)
XYZxyz(8.5405, 5.0897, 35.1755)
Luminance0.0509 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2EA3 #A39F2A
analogous
#2A6AA3 #2A2EA3 #632AA3
triadic
#2A2EA3 #A32A2E #2EA32A
tetradic
#2A2EA3 #A32A6A #A39F2A #2AA363
square
#2A2EA3 #A32A6A #A39F2A #2AA363
split-complementary
#2A2EA3 #A3632A #6AA32A
monochromatic
#111342 #1D2072 #2A2EA3 #3D42CD #6E71DA

Accessibility & contrast

On white

10.41
#2A2EA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#2A2EA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2EA3
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2EA3#FFFFFF#000000##FFFFFF
##2A2EA31.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A7
Deuteranopia (green-blind)
#003AA1
Tritanopia (blue-blind)
#004F65
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2a2ea3;
/* rgb */ color: rgb(42, 46, 163);
/* oklch */ color: oklch(38.7% 0.183 272.5);
Tailwind
colors: {
  custom: {
    50: '#7768bf',
    500: '#2a2ea3',
    950: '#000000',
  },
}
SCSS
$custom: #2a2ea3;
$custom-light: #7768bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2ea3",
  "rgb": {
    "r": 42,
    "g": 46,
    "b": 163
  },
  "hsl": {
    "h": 238.017,
    "s": 59.024,
    "l": 40.196
  },
  "oklch": {
    "l": 0.38674,
    "c": 0.18277,
    "h": 272.5
  },
  "luminance": 0.05091
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A2EA3

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

Preview Lab → · Contrast checker → · Palette generator →

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