#2D40AE#2D40AE

#2D40AE is a dark, vivid blue. Relative luminance 0.073; OKLCH L 43.0% C 0.176 H 269.7°. Best body text is #FFFFFF at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#2D40AE
RGBrgb(45, 64, 174)
HSLhsl(231, 59%, 43%)
HSVhsv(231, 74%, 68%)
CMYKcmyk(74.1%, 63.2%, 0%, 31.8%)
CIE-LABlab(32.44, 31.54, -60.78)
CIE-LCHlch(32.44, 68.48, 297.43°)
OKLaboklab(43% -0.0009 -0.1756)
OKLCHoklch(43% 0.176 269.7)
XYZxyz(10.5529, 7.2796, 40.8851)
Luminance0.0728 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D40AE #AE9B2D
analogous
#2D80AE #2D40AE #5B2DAE
triadic
#2D40AE #AE2D40 #40AE2D
tetradic
#2D40AE #AE2D80 #AE9B2D #2DAE5B
square
#2D40AE #AE2D80 #AE9B2D #2DAE5B
split-complementary
#2D40AE #AE5B2D #80AE2D
monochromatic
#141C4D #202E7D #2D40AE #485CD0 #7988DC

Accessibility & contrast

On white

8.55
#2D40AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#2D40AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D40AE
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D40AE#FFFFFF#000000##FFFFFF
##2D40AE1.008.552.468.55
#FFFFFF8.551.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.551.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d40ae;
/* rgb */ color: rgb(45, 64, 174);
/* oklch */ color: oklch(43.0% 0.176 269.7);
Tailwind
colors: {
  custom: {
    50: '#7974c7',
    500: '#2d40ae',
    950: '#000000',
  },
}
SCSS
$custom: #2d40ae;
$custom-light: #7974c7;
$custom-dark: #000000;
JSON
{
  "hex": "#2d40ae",
  "rgb": {
    "r": 45,
    "g": 64,
    "b": 174
  },
  "hsl": {
    "h": 231.163,
    "s": 58.904,
    "l": 42.941
  },
  "oklch": {
    "l": 0.42995,
    "c": 0.17563,
    "h": 269.7
  },
  "luminance": 0.07281
}

Semantic roles & 50–950 ramp

primary
#2D40AE
secondary
#C4B872
accent
#CB46E2
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2D40AE

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

Preview Lab → · Contrast checker → · Palette generator →

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