#2D408E#2D408E

#2D408E is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.3% C 0.131 H 269.4°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#2D408E
RGBrgb(45, 64, 142)
HSLhsl(228, 52%, 37%)
HSVhsv(228, 68%, 56%)
CMYKcmyk(68.3%, 54.9%, 0%, 44.3%)
CIE-LABlab(29.85, 19.60, -45.60)
CIE-LCHlch(29.85, 49.64, 293.26°)
OKLaboklab(40.27% -0.0014 -0.131)
OKLCHoklch(40.27% 0.131 269.4)
XYZxyz(7.7964, 6.1769, 26.3673)
Luminance0.0618 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D408E #8E7B2D
analogous
#2D718E #2D408E #4A2D8E
triadic
#2D408E #8E2D40 #408E2D
tetradic
#2D408E #8E2D71 #8E7B2D #2D8E4A
square
#2D408E #8E2D71 #8E7B2D #2D8E4A
split-complementary
#2D408E #8E4A2D #718E2D
monochromatic
#101631 #1E2B60 #2D408E #3C55BC #677BCF

Accessibility & contrast

On white

9.39
#2D408E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#2D408E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D408E
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D408E#FFFFFF#000000##FFFFFF
##2D408E1.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#084B91
Deuteranopia (green-blind)
#00428C
Tritanopia (blue-blind)
#005360
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2d408e;
/* rgb */ color: rgb(45, 64, 142);
/* oklch */ color: oklch(40.3% 0.131 269.4);
Tailwind
colors: {
  custom: {
    50: '#7274b0',
    500: '#2d408e',
    950: '#000000',
  },
}
SCSS
$custom: #2d408e;
$custom-light: #7274b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d408e",
  "rgb": {
    "r": 45,
    "g": 64,
    "b": 142
  },
  "hsl": {
    "h": 228.247,
    "s": 51.872,
    "l": 36.667
  },
  "oklch": {
    "l": 0.40265,
    "c": 0.13106,
    "h": 269.4
  },
  "luminance": 0.06178
}

Semantic roles & 50–950 ramp

primary
#2D408E
secondary
#B5A561
accent
#BF4CDB
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #2D408E

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

Preview Lab → · Contrast checker → · Palette generator →

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