#2D40B9#2D40B9

#2D40B9 is a dark, vivid blue. Relative luminance 0.077; OKLCH L 44.0% C 0.190 H 269.6°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#2D40B9
RGBrgb(45, 64, 185)
HSLhsl(232, 61%, 45%)
HSVhsv(232, 76%, 73%)
CMYKcmyk(75.7%, 65.4%, 0%, 27.5%)
CIE-LABlab(33.41, 35.55, -65.72)
CIE-LCHlch(33.41, 74.72, 298.41°)
OKLaboklab(44.01% -0.0014 -0.1901)
OKLCHoklch(44.01% 0.19 269.6)
XYZxyz(11.6695, 7.7262, 46.7658)
Luminance0.0773 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D40B9 #B9A62D
analogous
#2D86B9 #2D40B9 #602DB9
triadic
#2D40B9 #B92D40 #40B92D
tetradic
#2D40B9 #B92D86 #B9A62D #2DB960
square
#2D40B9 #B92D86 #B9A62D #2DB960
split-complementary
#2D40B9 #B9602D #86B92D
monochromatic
#151E57 #212F88 #2D40B9 #4F61D4 #808DE0

Accessibility & contrast

On white

8.25
#2D40B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#2D40B9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D40B9
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D40B9#FFFFFF#000000##FFFFFF
##2D40B91.008.252.558.25
#FFFFFF8.251.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BD
Deuteranopia (green-blind)
#0048B7
Tritanopia (blue-blind)
#006077
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2d40b9;
/* rgb */ color: rgb(45, 64, 185);
/* oklch */ color: oklch(44.0% 0.190 269.6);
Tailwind
colors: {
  custom: {
    50: '#7c75cf',
    500: '#2d40b9',
    950: '#000000',
  },
}
SCSS
$custom: #2d40b9;
$custom-light: #7c75cf;
$custom-dark: #000000;
JSON
{
  "hex": "#2d40b9",
  "rgb": {
    "r": 45,
    "g": 64,
    "b": 185
  },
  "hsl": {
    "h": 231.857,
    "s": 60.87,
    "l": 45.098
  },
  "oklch": {
    "l": 0.44007,
    "c": 0.1901,
    "h": 269.6
  },
  "luminance": 0.07727
}

Semantic roles & 50–950 ramp

primary
#2D40B9
secondary
#C9BE79
accent
#CE44E4
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0814
muted
#7C7B82

Preview Lab

Preview with #2D40B9

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

Preview Lab → · Contrast checker → · Palette generator →

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