#2D40B6#2D40B6

#2D40B6 is a dark, vivid blue. Relative luminance 0.076; OKLCH L 43.7% C 0.186 H 269.6°. Best body text is #FFFFFF at 8.33:1 contrast (WCAG AA passes).

Color values

HEX#2D40B6
RGBrgb(45, 64, 182)
HSLhsl(232, 60%, 45%)
HSVhsv(232, 75%, 71%)
CMYKcmyk(75.3%, 64.8%, 0%, 28.6%)
CIE-LABlab(33.14, 34.46, -64.38)
CIE-LCHlch(33.14, 73.03, 298.16°)
OKLaboklab(43.73% -0.0013 -0.1862)
OKLCHoklch(43.73% 0.186 269.6)
XYZxyz(11.3562, 7.6009, 45.1155)
Luminance0.0760 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D40B6 #B6A32D
analogous
#2D85B6 #2D40B6 #5F2DB6
triadic
#2D40B6 #B62D40 #40B62D
tetradic
#2D40B6 #B62D85 #B6A32D #2DB65F
square
#2D40B6 #B62D85 #B6A32D #2DB65F
split-complementary
#2D40B6 #B65F2D #85B62D
monochromatic
#151D54 #212F85 #2D40B6 #4D60D3 #7E8CDF

Accessibility & contrast

On white

8.33
#2D40B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#2D40B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D40B6
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D40B6#FFFFFF#000000##FFFFFF
##2D40B61.008.332.528.33
#FFFFFF8.331.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BA
Deuteranopia (green-blind)
#0048B4
Tritanopia (blue-blind)
#005F75
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2d40b6;
/* rgb */ color: rgb(45, 64, 182);
/* oklch */ color: oklch(43.7% 0.186 269.6);
Tailwind
colors: {
  custom: {
    50: '#7b75cd',
    500: '#2d40b6',
    950: '#000000',
  },
}
SCSS
$custom: #2d40b6;
$custom-light: #7b75cd;
$custom-dark: #000000;
JSON
{
  "hex": "#2d40b6",
  "rgb": {
    "r": 45,
    "g": 64,
    "b": 182
  },
  "hsl": {
    "h": 231.679,
    "s": 60.352,
    "l": 44.51
  },
  "oklch": {
    "l": 0.43727,
    "c": 0.18619,
    "h": 269.6
  },
  "luminance": 0.07602
}

Semantic roles & 50–950 ramp

primary
#2D40B6
secondary
#C8BD77
accent
#CD44E3
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0814
muted
#7C7B82

Preview Lab

Preview with #2D40B6

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

Preview Lab → · Contrast checker → · Palette generator →

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