#2D40B4#2D40B4

#2D40B4 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.5% C 0.184 H 269.6°. Best body text is #FFFFFF at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#2D40B4
RGBrgb(45, 64, 180)
HSLhsl(232, 60%, 44%)
HSVhsv(232, 75%, 71%)
CMYKcmyk(75%, 64.4%, 0%, 29.4%)
CIE-LABlab(32.96, 33.74, -63.49)
CIE-LCHlch(32.96, 71.90, 297.99°)
OKLaboklab(43.54% -0.0012 -0.1836)
OKLCHoklch(43.54% 0.184 269.6)
XYZxyz(11.1510, 7.5188, 44.0348)
Luminance0.0752 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D40B4 #B4A12D
analogous
#2D84B4 #2D40B4 #5E2DB4
triadic
#2D40B4 #B42D40 #40B42D
tetradic
#2D40B4 #B42D84 #B4A12D #2DB45E
square
#2D40B4 #B42D84 #B4A12D #2DB45E
split-complementary
#2D40B4 #B45E2D #84B42D
monochromatic
#151D52 #212F83 #2D40B4 #4C5FD2 #7D8BDE

Accessibility & contrast

On white

8.39
#2D40B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#2D40B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D40B4
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D40B4#FFFFFF#000000##FFFFFF
##2D40B41.008.392.508.39
#FFFFFF8.391.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B8
Deuteranopia (green-blind)
#0047B2
Tritanopia (blue-blind)
#005E74
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2d40b4;
/* rgb */ color: rgb(45, 64, 180);
/* oklch */ color: oklch(43.5% 0.184 269.6);
Tailwind
colors: {
  custom: {
    50: '#7a74cb',
    500: '#2d40b4',
    950: '#000000',
  },
}
SCSS
$custom: #2d40b4;
$custom-light: #7a74cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2d40b4",
  "rgb": {
    "r": 45,
    "g": 64,
    "b": 180
  },
  "hsl": {
    "h": 231.556,
    "s": 60,
    "l": 44.118
  },
  "oklch": {
    "l": 0.43543,
    "c": 0.18357,
    "h": 269.6
  },
  "luminance": 0.0752
}

Semantic roles & 50–950 ramp

primary
#2D40B4
secondary
#C7BC76
accent
#CD45E3
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #2D40B4

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

Preview Lab → · Contrast checker → · Palette generator →

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