#2D407D#2D407D

#2D407D is a dark, moderate blue. Relative luminance 0.057; OKLCH L 39.0% C 0.106 H 268.2°. Best body text is #FFFFFF at 9.81:1 contrast (WCAG AA passes).

Color values

HEX#2D407D
RGBrgb(45, 64, 125)
HSLhsl(226, 47%, 33%)
HSVhsv(226, 64%, 49%)
CMYKcmyk(64%, 48.8%, 0%, 51%)
CIE-LABlab(28.66, 13.20, -36.98)
CIE-LCHlch(28.66, 39.27, 289.64°)
OKLaboklab(38.97% -0.0033 -0.1057)
OKLCHoklch(38.97% 0.106 268.2)
XYZxyz(6.6160, 5.7048, 20.1505)
Luminance0.0570 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D407D #7D6A2D
analogous
#2D687D #2D407D #422D7D
triadic
#2D407D #7D2D40 #407D2D
tetradic
#2D407D #7D2D68 #7D6A2D #2D7D42
square
#2D407D #7D2D68 #7D6A2D #2D7D42
split-complementary
#2D407D #7D422D #687D2D
monochromatic
#0D1223 #1D2950 #2D407D #3D57AA #5F77C5

Accessibility & contrast

On white

9.81
#2D407D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D407D
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D407D#FFFFFF#000000##FFFFFF
##2D407D1.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22477F
Deuteranopia (green-blind)
#14407C
Tritanopia (blue-blind)
#004E58
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2d407d;
/* rgb */ color: rgb(45, 64, 125);
/* oklch */ color: oklch(39.0% 0.106 268.2);
Tailwind
colors: {
  custom: {
    50: '#6e74a3',
    500: '#2d407d',
    950: '#000000',
  },
}
SCSS
$custom: #2d407d;
$custom-light: #6e74a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2d407d",
  "rgb": {
    "r": 45,
    "g": 64,
    "b": 125
  },
  "hsl": {
    "h": 225.75,
    "s": 47.059,
    "l": 33.333
  },
  "oklch": {
    "l": 0.38972,
    "c": 0.10574,
    "h": 268.2
  },
  "luminance": 0.05705
}

Semantic roles & 50–950 ramp

primary
#2D407D
secondary
#AC985A
accent
#B751D7
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #2D407D

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

Preview Lab → · Contrast checker → · Palette generator →

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