#2D408C#2D408C

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

Color values

HEX#2D408C
RGBrgb(45, 64, 140)
HSLhsl(228, 51%, 36%)
HSVhsv(228, 68%, 55%)
CMYKcmyk(67.9%, 54.3%, 0%, 45.1%)
CIE-LABlab(29.71, 18.84, -44.61)
CIE-LCHlch(29.71, 48.43, 292.90°)
OKLaboklab(40.11% -0.0016 -0.1281)
OKLCHoklch(40.11% 0.128 269.3)
XYZxyz(7.6476, 6.1174, 25.5836)
Luminance0.0612 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D408C #8C792D
analogous
#2D708C #2D408C #4A2D8C
triadic
#2D408C #8C2D40 #408C2D
tetradic
#2D408C #8C2D70 #8C792D #2D8C4A
square
#2D408C #8C2D70 #8C792D #2D8C4A
split-complementary
#2D408C #8C4A2D #708C2D
monochromatic
#0F162F #1E2B5E #2D408C #3C55BA #667ACE

Accessibility & contrast

On white

9.44
#2D408C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D408C
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D408C#FFFFFF#000000##FFFFFF
##2D408C1.009.442.229.44
#FFFFFF9.441.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E4A8F
Deuteranopia (green-blind)
#00428A
Tritanopia (blue-blind)
#00525F
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2d408c;
/* rgb */ color: rgb(45, 64, 140);
/* oklch */ color: oklch(40.1% 0.128 269.3);
Tailwind
colors: {
  custom: {
    50: '#7174ae',
    500: '#2d408c',
    950: '#000000',
  },
}
SCSS
$custom: #2d408c;
$custom-light: #7174ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2d408c",
  "rgb": {
    "r": 45,
    "g": 64,
    "b": 140
  },
  "hsl": {
    "h": 228,
    "s": 51.351,
    "l": 36.275
  },
  "oklch": {
    "l": 0.40106,
    "c": 0.12814,
    "h": 269.3
  },
  "luminance": 0.06118
}

Semantic roles & 50–950 ramp

primary
#2D408C
secondary
#B4A460
accent
#BE4DDB
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #2D408C

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

Preview Lab → · Contrast checker → · Palette generator →

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