#2A40AE#2A40AE

#2A40AE is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.8% C 0.176 H 268.8°. Best body text is #FFFFFF at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#2A40AE
RGBrgb(42, 64, 174)
HSLhsl(230, 61%, 42%)
HSVhsv(230, 76%, 68%)
CMYKcmyk(75.9%, 63.2%, 0%, 31.8%)
CIE-LABlab(32.29, 31.20, -61.02)
CIE-LCHlch(32.29, 68.54, 297.08°)
OKLaboklab(42.85% -0.0038 -0.1764)
OKLCHoklch(42.85% 0.176 268.8)
XYZxyz(10.4256, 7.2139, 40.8792)
Luminance0.0722 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A40AE #AE982A
analogous
#2A82AE #2A40AE #562AAE
triadic
#2A40AE #AE2A40 #40AE2A
tetradic
#2A40AE #AE2A82 #AE982A #2AAE56
square
#2A40AE #AE2A82 #AE982A #2AAE56
split-complementary
#2A40AE #AE562A #82AE2A
monochromatic
#121C4B #1E2E7D #2A40AE #435BD2 #7586DE

Accessibility & contrast

On white

8.60
#2A40AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#2A40AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A40AE
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A40AE#FFFFFF#000000##FFFFFF
##2A40AE1.008.602.448.60
#FFFFFF8.601.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B2
Deuteranopia (green-blind)
#0046AC
Tritanopia (blue-blind)
#005D71
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2a40ae;
/* rgb */ color: rgb(42, 64, 174);
/* oklch */ color: oklch(42.8% 0.176 268.8);
Tailwind
colors: {
  custom: {
    50: '#7874c7',
    500: '#2a40ae',
    950: '#000000',
  },
}
SCSS
$custom: #2a40ae;
$custom-light: #7874c7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a40ae",
  "rgb": {
    "r": 42,
    "g": 64,
    "b": 174
  },
  "hsl": {
    "h": 230,
    "s": 61.111,
    "l": 42.353
  },
  "oklch": {
    "l": 0.42847,
    "c": 0.17646,
    "h": 268.8
  },
  "luminance": 0.07215
}

Semantic roles & 50–950 ramp

primary
#2A40AE
secondary
#C5B76F
accent
#C944E4
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2A40AE

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

Preview Lab → · Contrast checker → · Palette generator →

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