#2D408B#2D408B

#2D408B is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.0% C 0.127 H 269.2°. Best body text is #FFFFFF at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#2D408B
RGBrgb(45, 64, 139)
HSLhsl(228, 51%, 36%)
HSVhsv(228, 68%, 55%)
CMYKcmyk(67.6%, 54%, 0%, 45.5%)
CIE-LABlab(29.63, 18.47, -44.11)
CIE-LCHlch(29.63, 47.82, 292.72°)
OKLaboklab(40.03% -0.0017 -0.1267)
OKLCHoklch(40.03% 0.127 269.2)
XYZxyz(7.5742, 6.0881, 25.1970)
Luminance0.0609 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D408B #8B782D
analogous
#2D6F8B #2D408B #492D8B
triadic
#2D408B #8B2D40 #408B2D
tetradic
#2D408B #8B2D6F #8B782D #2D8B49
square
#2D408B #8B2D6F #8B782D #2D8B49
split-complementary
#2D408B #8B492D #6F8B2D
monochromatic
#0F152F #1E2B5D #2D408B #3C55B9 #657ACD

Accessibility & contrast

On white

9.47
#2D408B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#2D408B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D408B
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D408B#FFFFFF#000000##FFFFFF
##2D408B1.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#104A8E
Deuteranopia (green-blind)
#004289
Tritanopia (blue-blind)
#00525F
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2d408b;
/* rgb */ color: rgb(45, 64, 139);
/* oklch */ color: oklch(40.0% 0.127 269.2);
Tailwind
colors: {
  custom: {
    50: '#7174ad',
    500: '#2d408b',
    950: '#000000',
  },
}
SCSS
$custom: #2d408b;
$custom-light: #7174ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2d408b",
  "rgb": {
    "r": 45,
    "g": 64,
    "b": 139
  },
  "hsl": {
    "h": 227.872,
    "s": 51.087,
    "l": 36.078
  },
  "oklch": {
    "l": 0.40028,
    "c": 0.12667,
    "h": 269.2
  },
  "luminance": 0.06089
}

Semantic roles & 50–950 ramp

primary
#2D408B
secondary
#B4A360
accent
#BE4DDB
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2D408B

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

Preview Lab → · Contrast checker → · Palette generator →

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