#2A40A9#2A40A9

#2A40A9 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.4% C 0.170 H 268.8°. Best body text is #FFFFFF at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#2A40A9
RGBrgb(42, 64, 169)
HSLhsl(230, 60%, 41%)
HSVhsv(230, 75%, 66%)
CMYKcmyk(75.1%, 62.1%, 0%, 33.7%)
CIE-LABlab(31.86, 29.34, -58.74)
CIE-LCHlch(31.86, 65.66, 296.54°)
OKLaboklab(42.4% -0.0037 -0.1697)
OKLCHoklch(42.4% 0.17 268.8)
XYZxyz(9.9472, 7.0225, 38.3597)
Luminance0.0702 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A40A9 #A9932A
analogous
#2A80A9 #2A40A9 #542AA9
triadic
#2A40A9 #A92A40 #40A92A
tetradic
#2A40A9 #A92A80 #A9932A #2AA954
square
#2A40A9 #A92A80 #A9932A #2AA954
split-complementary
#2A40A9 #A9542A #80A92A
monochromatic
#121B47 #1E2D78 #2A40A9 #4159D0 #7284DC

Accessibility & contrast

On white

8.73
#2A40A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#2A40A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A40A9
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A40A9#FFFFFF#000000##FFFFFF
##2A40A91.008.732.408.73
#FFFFFF8.731.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AC
Deuteranopia (green-blind)
#0045A7
Tritanopia (blue-blind)
#005B6E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2a40a9;
/* rgb */ color: rgb(42, 64, 169);
/* oklch */ color: oklch(42.4% 0.170 268.8);
Tailwind
colors: {
  custom: {
    50: '#7774c3',
    500: '#2a40a9',
    950: '#000000',
  },
}
SCSS
$custom: #2a40a9;
$custom-light: #7774c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a40a9",
  "rgb": {
    "r": 42,
    "g": 64,
    "b": 169
  },
  "hsl": {
    "h": 229.606,
    "s": 60.19,
    "l": 41.373
  },
  "oklch": {
    "l": 0.42395,
    "c": 0.16976,
    "h": 268.8
  },
  "luminance": 0.07024
}

Semantic roles & 50–950 ramp

primary
#2A40A9
secondary
#C3B46C
accent
#C844E3
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2A40A9

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

Preview Lab → · Contrast checker → · Palette generator →

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