#2A40AD#2A40AD

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

Color values

HEX#2A40AD
RGBrgb(42, 64, 173)
HSLhsl(230, 61%, 42%)
HSVhsv(230, 76%, 68%)
CMYKcmyk(75.7%, 63%, 0%, 32.2%)
CIE-LABlab(32.20, 30.83, -60.57)
CIE-LCHlch(32.20, 67.97, 296.98°)
OKLaboklab(42.76% -0.0038 -0.1751)
OKLCHoklch(42.76% 0.175 268.8)
XYZxyz(10.3285, 7.1750, 40.3676)
Luminance0.0718 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A40AD #AD972A
analogous
#2A81AD #2A40AD #562AAD
triadic
#2A40AD #AD2A40 #40AD2A
tetradic
#2A40AD #AD2A81 #AD972A #2AAD56
square
#2A40AD #AD2A81 #AD972A #2AAD56
split-complementary
#2A40AD #AD562A #81AD2A
monochromatic
#121C4B #1E2E7C #2A40AD #435BD1 #7486DD

Accessibility & contrast

On white

8.62
#2A40AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A40AD
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A40AD#FFFFFF#000000##FFFFFF
##2A40AD1.008.622.448.62
#FFFFFF8.621.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B1
Deuteranopia (green-blind)
#0046AB
Tritanopia (blue-blind)
#005C70
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2a40ad;
/* rgb */ color: rgb(42, 64, 173);
/* oklch */ color: oklch(42.8% 0.175 268.8);
Tailwind
colors: {
  custom: {
    50: '#7874c6',
    500: '#2a40ad',
    950: '#000000',
  },
}
SCSS
$custom: #2a40ad;
$custom-light: #7874c6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a40ad",
  "rgb": {
    "r": 42,
    "g": 64,
    "b": 173
  },
  "hsl": {
    "h": 229.924,
    "s": 60.93,
    "l": 42.157
  },
  "oklch": {
    "l": 0.42756,
    "c": 0.17512,
    "h": 268.8
  },
  "luminance": 0.07176
}

Semantic roles & 50–950 ramp

primary
#2A40AD
secondary
#C5B66E
accent
#C944E4
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2A40AD

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

Preview Lab → · Contrast checker → · Palette generator →

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