#2D40A9#2D40A9

#2D40A9 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.5% C 0.169 H 269.7°. Best body text is #FFFFFF at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#2D40A9
RGBrgb(45, 64, 169)
HSLhsl(231, 58%, 42%)
HSVhsv(231, 73%, 66%)
CMYKcmyk(73.4%, 62.1%, 0%, 33.7%)
CIE-LABlab(32.01, 29.70, -58.49)
CIE-LCHlch(32.01, 65.60, 296.92°)
OKLaboklab(42.55% -0.0008 -0.1689)
OKLCHoklch(42.55% 0.169 269.7)
XYZxyz(10.0746, 7.0882, 38.3656)
Luminance0.0709 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D40A9 #A9962D
analogous
#2D7EA9 #2D40A9 #582DA9
triadic
#2D40A9 #A92D40 #40A92D
tetradic
#2D40A9 #A92D7E #A9962D #2DA958
square
#2D40A9 #A92D7E #A9962D #2DA958
split-complementary
#2D40A9 #A9582D #7EA92D
monochromatic
#131B48 #202E79 #2D40A9 #465ACE #7685DA

Accessibility & contrast

On white

8.69
#2D40A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#2D40A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D40A9
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D40A9#FFFFFF#000000##FFFFFF
##2D40A91.008.692.428.69
#FFFFFF8.691.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.691.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d40a9;
/* rgb */ color: rgb(45, 64, 169);
/* oklch */ color: oklch(42.5% 0.169 269.7);
Tailwind
colors: {
  custom: {
    50: '#7874c3',
    500: '#2d40a9',
    950: '#000000',
  },
}
SCSS
$custom: #2d40a9;
$custom-light: #7874c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2d40a9",
  "rgb": {
    "r": 45,
    "g": 64,
    "b": 169
  },
  "hsl": {
    "h": 230.806,
    "s": 57.944,
    "l": 41.961
  },
  "oklch": {
    "l": 0.42546,
    "c": 0.16892,
    "h": 269.7
  },
  "luminance": 0.07089
}

Semantic roles & 50–950 ramp

primary
#2D40A9
secondary
#C2B66F
accent
#C947E1
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2D40A9

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

Preview Lab → · Contrast checker → · Palette generator →

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