#2D40A4#2D40A4

#2D40A4 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.1% C 0.162 H 269.7°. Best body text is #FFFFFF at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#2D40A4
RGBrgb(45, 64, 164)
HSLhsl(230, 57%, 41%)
HSVhsv(230, 73%, 64%)
CMYKcmyk(72.6%, 61%, 0%, 35.7%)
CIE-LABlab(31.59, 27.85, -56.17)
CIE-LCHlch(31.59, 62.70, 296.37°)
OKLaboklab(42.11% -0.0007 -0.1621)
OKLCHoklch(42.11% 0.162 269.7)
XYZxyz(9.6141, 6.9040, 35.9407)
Luminance0.0691 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D40A4 #A4912D
analogous
#2D7BA4 #2D40A4 #552DA4
triadic
#2D40A4 #A42D40 #40A42D
tetradic
#2D40A4 #A42D7B #A4912D #2DA455
square
#2D40A4 #A42D7B #A4912D #2DA455
split-complementary
#2D40A4 #A4552D #7BA42D
monochromatic
#131B44 #202D74 #2D40A4 #4359CB #7383D9

Accessibility & contrast

On white

8.82
#2D40A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#2D40A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D40A4
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D40A4#FFFFFF#000000##FFFFFF
##2D40A41.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A7
Deuteranopia (green-blind)
#0045A2
Tritanopia (blue-blind)
#00596B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2d40a4;
/* rgb */ color: rgb(45, 64, 164);
/* oklch */ color: oklch(42.1% 0.162 269.7);
Tailwind
colors: {
  custom: {
    50: '#7774c0',
    500: '#2d40a4',
    950: '#000000',
  },
}
SCSS
$custom: #2d40a4;
$custom-light: #7774c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d40a4",
  "rgb": {
    "r": 45,
    "g": 64,
    "b": 164
  },
  "hsl": {
    "h": 230.42,
    "s": 56.938,
    "l": 40.98
  },
  "oklch": {
    "l": 0.42105,
    "c": 0.16212,
    "h": 269.7
  },
  "luminance": 0.06905
}

Semantic roles & 50–950 ramp

primary
#2D40A4
secondary
#C0B36D
accent
#C848E0
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2D40A4

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

Preview Lab → · Contrast checker → · Palette generator →

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