#2D407C#2D407C

#2D407C is a dark, moderate blue. Relative luminance 0.057; OKLCH L 38.9% C 0.104 H 268.1°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#2D407C
RGBrgb(45, 64, 124)
HSLhsl(226, 47%, 33%)
HSVhsv(226, 64%, 49%)
CMYKcmyk(63.7%, 48.4%, 0%, 51.4%)
CIE-LABlab(28.59, 12.82, -36.46)
CIE-LCHlch(28.59, 38.65, 289.38°)
OKLaboklab(38.9% -0.0035 -0.1042)
OKLCHoklch(38.9% 0.104 268.1)
XYZxyz(6.5524, 5.6794, 19.8158)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D407C #7C692D
analogous
#2D677C #2D407C #412D7C
triadic
#2D407C #7C2D40 #407C2D
tetradic
#2D407C #7C2D67 #7C692D #2D7C41
square
#2D407C #7C2D67 #7C692D #2D7C41
split-complementary
#2D407C #7C412D #677C2D
monochromatic
#0C1222 #1D294F #2D407C #3D57A9 #5F77C5

Accessibility & contrast

On white

9.83
#2D407C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#2D407C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D407C
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D407C#FFFFFF#000000##FFFFFF
##2D407C1.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23477E
Deuteranopia (green-blind)
#16407B
Tritanopia (blue-blind)
#004E58
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2d407c;
/* rgb */ color: rgb(45, 64, 124);
/* oklch */ color: oklch(38.9% 0.104 268.1);
Tailwind
colors: {
  custom: {
    50: '#6e74a2',
    500: '#2d407c',
    950: '#000000',
  },
}
SCSS
$custom: #2d407c;
$custom-light: #6e74a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2d407c",
  "rgb": {
    "r": 45,
    "g": 64,
    "b": 124
  },
  "hsl": {
    "h": 225.57,
    "s": 46.746,
    "l": 33.137
  },
  "oklch": {
    "l": 0.389,
    "c": 0.10422,
    "h": 268.1
  },
  "luminance": 0.0568
}

Semantic roles & 50–950 ramp

primary
#2D407C
secondary
#AB985A
accent
#B651D6
background
#F6F7FA
surface
#ECEDF3
border
#C7C8CD
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #2D407C

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

Preview Lab → · Contrast checker → · Palette generator →

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