#2D40B8#2D40B8

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

Color values

HEX#2D40B8
RGBrgb(45, 64, 184)
HSLhsl(232, 61%, 45%)
HSVhsv(232, 76%, 72%)
CMYKcmyk(75.5%, 65.2%, 0%, 27.8%)
CIE-LABlab(33.32, 35.19, -65.27)
CIE-LCHlch(33.32, 74.15, 298.33°)
OKLaboklab(43.91% -0.0014 -0.1888)
OKLCHoklch(43.91% 0.189 269.6)
XYZxyz(11.5643, 7.6841, 46.2118)
Luminance0.0769 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D40B8 #B8A52D
analogous
#2D85B8 #2D40B8 #602DB8
triadic
#2D40B8 #B82D40 #40B82D
tetradic
#2D40B8 #B82D85 #B8A52D #2DB860
square
#2D40B8 #B82D85 #B8A52D #2DB860
split-complementary
#2D40B8 #B8602D #85B82D
monochromatic
#151E56 #212F87 #2D40B8 #4E61D4 #808DE0

Accessibility & contrast

On white

8.28
#2D40B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#2D40B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D40B8
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D40B8#FFFFFF#000000##FFFFFF
##2D40B81.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BC
Deuteranopia (green-blind)
#0048B6
Tritanopia (blue-blind)
#006076
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2d40b8;
/* rgb */ color: rgb(45, 64, 184);
/* oklch */ color: oklch(43.9% 0.189 269.6);
Tailwind
colors: {
  custom: {
    50: '#7b75ce',
    500: '#2d40b8',
    950: '#000000',
  },
}
SCSS
$custom: #2d40b8;
$custom-light: #7b75ce;
$custom-dark: #000000;
JSON
{
  "hex": "#2d40b8",
  "rgb": {
    "r": 45,
    "g": 64,
    "b": 184
  },
  "hsl": {
    "h": 231.799,
    "s": 60.699,
    "l": 44.902
  },
  "oklch": {
    "l": 0.43913,
    "c": 0.18879,
    "h": 269.6
  },
  "luminance": 0.07685
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D40B8

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

Preview Lab → · Contrast checker → · Palette generator →

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