#2D408D#2D408D

#2D408D is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.2% C 0.130 H 269.3°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#2D408D
RGBrgb(45, 64, 141)
HSLhsl(228, 52%, 36%)
HSVhsv(228, 68%, 55%)
CMYKcmyk(68.1%, 54.6%, 0%, 44.7%)
CIE-LABlab(29.78, 19.22, -45.11)
CIE-LCHlch(29.78, 49.03, 293.08°)
OKLaboklab(40.18% -0.0015 -0.1296)
OKLCHoklch(40.18% 0.13 269.3)
XYZxyz(7.7217, 6.1470, 25.9737)
Luminance0.0615 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D408D #8D7A2D
analogous
#2D708D #2D408D #4A2D8D
triadic
#2D408D #8D2D40 #408D2D
tetradic
#2D408D #8D2D70 #8D7A2D #2D8D4A
square
#2D408D #8D2D70 #8D7A2D #2D8D4A
split-complementary
#2D408D #8D4A2D #708D2D
monochromatic
#0F1630 #1E2B5F #2D408D #3C55BB #667BCE

Accessibility & contrast

On white

9.42
#2D408D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#2D408D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D408D
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D408D#FFFFFF#000000##FFFFFF
##2D408D1.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B4B90
Deuteranopia (green-blind)
#00428B
Tritanopia (blue-blind)
#005260
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2d408d;
/* rgb */ color: rgb(45, 64, 141);
/* oklch */ color: oklch(40.2% 0.130 269.3);
Tailwind
colors: {
  custom: {
    50: '#7274af',
    500: '#2d408d',
    950: '#000000',
  },
}
SCSS
$custom: #2d408d;
$custom-light: #7274af;
$custom-dark: #000000;
JSON
{
  "hex": "#2d408d",
  "rgb": {
    "r": 45,
    "g": 64,
    "b": 141
  },
  "hsl": {
    "h": 228.125,
    "s": 51.613,
    "l": 36.471
  },
  "oklch": {
    "l": 0.40185,
    "c": 0.1296,
    "h": 269.3
  },
  "luminance": 0.06148
}

Semantic roles & 50–950 ramp

primary
#2D408D
secondary
#B5A461
accent
#BF4DDB
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #2D408D

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

Preview Lab → · Contrast checker → · Palette generator →

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