#2D40B7#2D40B7

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

Color values

HEX#2D40B7
RGBrgb(45, 64, 183)
HSLhsl(232, 61%, 45%)
HSVhsv(232, 75%, 72%)
CMYKcmyk(75.4%, 65%, 0%, 28.2%)
CIE-LABlab(33.23, 34.83, -64.83)
CIE-LCHlch(33.23, 73.59, 298.25°)
OKLaboklab(43.82% -0.0013 -0.1875)
OKLCHoklch(43.82% 0.187 269.6)
XYZxyz(11.4599, 7.6423, 45.6617)
Luminance0.0764 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D40B7 #B7A42D
analogous
#2D85B7 #2D40B7 #5F2DB7
triadic
#2D40B7 #B72D40 #40B72D
tetradic
#2D40B7 #B72D85 #B7A42D #2DB75F
square
#2D40B7 #B72D85 #B7A42D #2DB75F
split-complementary
#2D40B7 #B75F2D #85B72D
monochromatic
#151E55 #212F86 #2D40B7 #4E60D3 #7F8CDF

Accessibility & contrast

On white

8.30
#2D40B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#2D40B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D40B7
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D40B7#FFFFFF#000000##FFFFFF
##2D40B71.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BB
Deuteranopia (green-blind)
#0048B5
Tritanopia (blue-blind)
#005F75
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2d40b7;
/* rgb */ color: rgb(45, 64, 183);
/* oklch */ color: oklch(43.8% 0.187 269.6);
Tailwind
colors: {
  custom: {
    50: '#7b75ce',
    500: '#2d40b7',
    950: '#000000',
  },
}
SCSS
$custom: #2d40b7;
$custom-light: #7b75ce;
$custom-dark: #000000;
JSON
{
  "hex": "#2d40b7",
  "rgb": {
    "r": 45,
    "g": 64,
    "b": 183
  },
  "hsl": {
    "h": 231.739,
    "s": 60.526,
    "l": 44.706
  },
  "oklch": {
    "l": 0.4382,
    "c": 0.18749,
    "h": 269.6
  },
  "luminance": 0.07644
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D40B7

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

Preview Lab → · Contrast checker → · Palette generator →

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