#2D407E#2D407E

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

Color values

HEX#2D407E
RGBrgb(45, 64, 126)
HSLhsl(226, 47%, 34%)
HSVhsv(226, 64%, 49%)
CMYKcmyk(64.3%, 49.2%, 0%, 50.6%)
CIE-LABlab(28.72, 13.57, -37.50)
CIE-LCHlch(28.72, 39.88, 289.90°)
OKLaboklab(39.04% -0.0032 -0.1072)
OKLCHoklch(39.04% 0.107 268.3)
XYZxyz(6.6802, 5.7305, 20.4887)
Luminance0.0573 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D407E #7E6B2D
analogous
#2D687E #2D407E #422D7E
triadic
#2D407E #7E2D40 #407E2D
tetradic
#2D407E #7E2D68 #7E6B2D #2D7E42
square
#2D407E #7E2D68 #7E6B2D #2D7E42
split-complementary
#2D407E #7E422D #687E2D
monochromatic
#0D1224 #1D2951 #2D407E #3D57AB #5F77C6

Accessibility & contrast

On white

9.78
#2D407E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#2D407E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D407E
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D407E#FFFFFF#000000##FFFFFF
##2D407E1.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#214880
Deuteranopia (green-blind)
#12407D
Tritanopia (blue-blind)
#004E59
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2d407e;
/* rgb */ color: rgb(45, 64, 126);
/* oklch */ color: oklch(39.0% 0.107 268.3);
Tailwind
colors: {
  custom: {
    50: '#6e74a4',
    500: '#2d407e',
    950: '#000000',
  },
}
SCSS
$custom: #2d407e;
$custom-light: #6e74a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2d407e",
  "rgb": {
    "r": 45,
    "g": 64,
    "b": 126
  },
  "hsl": {
    "h": 225.926,
    "s": 47.368,
    "l": 33.529
  },
  "oklch": {
    "l": 0.39044,
    "c": 0.10726,
    "h": 268.3
  },
  "luminance": 0.05731
}

Semantic roles & 50–950 ramp

primary
#2D407E
secondary
#AC995A
accent
#B851D7
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #2D407E

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

Preview Lab → · Contrast checker → · Palette generator →

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