#2D40A1#2D40A1

#2D40A1 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.8% C 0.158 H 269.7°. Best body text is #FFFFFF at 8.90:1 contrast (WCAG AA passes).

Color values

HEX#2D40A1
RGBrgb(45, 64, 161)
HSLhsl(230, 56%, 40%)
HSVhsv(230, 72%, 63%)
CMYKcmyk(72%, 60.2%, 0%, 36.9%)
CIE-LABlab(31.34, 26.73, -54.77)
CIE-LCHlch(31.34, 60.94, 296.02°)
OKLaboklab(41.84% -0.0007 -0.158)
OKLCHoklch(41.84% 0.158 269.7)
XYZxyz(9.3464, 6.7969, 34.5307)
Luminance0.0680 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D40A1 #A18E2D
analogous
#2D7AA1 #2D40A1 #542DA1
triadic
#2D40A1 #A12D40 #40A12D
tetradic
#2D40A1 #A12D7A #A18E2D #2DA154
square
#2D40A1 #A12D7A #A18E2D #2DA154
split-complementary
#2D40A1 #A1542D #7AA12D
monochromatic
#121A41 #202D71 #2D40A1 #4158CA #7182D7

Accessibility & contrast

On white

8.90
#2D40A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#2D40A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D40A1
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D40A1#FFFFFF#000000##FFFFFF
##2D40A11.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA4
Deuteranopia (green-blind)
#00459F
Tritanopia (blue-blind)
#00586A
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2d40a1;
/* rgb */ color: rgb(45, 64, 161);
/* oklch */ color: oklch(41.8% 0.158 269.7);
Tailwind
colors: {
  custom: {
    50: '#7674be',
    500: '#2d40a1',
    950: '#000000',
  },
}
SCSS
$custom: #2d40a1;
$custom-light: #7674be;
$custom-dark: #000000;
JSON
{
  "hex": "#2d40a1",
  "rgb": {
    "r": 45,
    "g": 64,
    "b": 161
  },
  "hsl": {
    "h": 230.172,
    "s": 56.311,
    "l": 40.392
  },
  "oklch": {
    "l": 0.41844,
    "c": 0.158,
    "h": 269.7
  },
  "luminance": 0.06798
}

Semantic roles & 50–950 ramp

primary
#2D40A1
secondary
#BFB16B
accent
#C748E0
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2D40A1

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

Preview Lab → · Contrast checker → · Palette generator →

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