#2D407A#2D407A

#2D407A is a dark, moderate blue. Relative luminance 0.056; OKLCH L 38.8% C 0.101 H 267.8°. Best body text is #FFFFFF at 9.88:1 contrast (WCAG AA passes).

Color values

HEX#2D407A
RGBrgb(45, 64, 122)
HSLhsl(225, 46%, 33%)
HSVhsv(225, 63%, 48%)
CMYKcmyk(63.1%, 47.5%, 0%, 52.2%)
CIE-LABlab(28.46, 12.08, -35.42)
CIE-LCHlch(28.46, 37.42, 288.83°)
OKLaboklab(38.76% -0.0038 -0.1011)
OKLCHoklch(38.76% 0.101 267.8)
XYZxyz(6.4272, 5.6293, 19.1564)
Luminance0.0563 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D407A #7A672D
analogous
#2D667A #2D407A #402D7A
triadic
#2D407A #7A2D40 #407A2D
tetradic
#2D407A #7A2D66 #7A672D #2D7A40
square
#2D407A #7A2D66 #7A672D #2D7A40
split-complementary
#2D407A #7A402D #667A2D
monochromatic
#0C1121 #1D294D #2D407A #3D57A7 #5E77C4

Accessibility & contrast

On white

9.88
#2D407A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#2D407A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D407A
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D407A#FFFFFF#000000##FFFFFF
##2D407A1.009.882.139.88
#FFFFFF9.881.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25477C
Deuteranopia (green-blind)
#184079
Tritanopia (blue-blind)
#004D57
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2d407a;
/* rgb */ color: rgb(45, 64, 122);
/* oklch */ color: oklch(38.8% 0.101 267.8);
Tailwind
colors: {
  custom: {
    50: '#6e74a1',
    500: '#2d407a',
    950: '#000000',
  },
}
SCSS
$custom: #2d407a;
$custom-light: #6e74a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2d407a",
  "rgb": {
    "r": 45,
    "g": 64,
    "b": 122
  },
  "hsl": {
    "h": 225.195,
    "s": 46.108,
    "l": 32.745
  },
  "oklch": {
    "l": 0.38757,
    "c": 0.10116,
    "h": 267.8
  },
  "luminance": 0.0563
}

Semantic roles & 50–950 ramp

primary
#2D407A
secondary
#AA9659
accent
#B552D6
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#08080F
muted
#7B7B7E

Preview Lab

Preview with #2D407A

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

Preview Lab → · Contrast checker → · Palette generator →

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