#2D4086#2D4086

#2D4086 is a dark, moderate blue. Relative luminance 0.059; OKLCH L 39.6% C 0.119 H 269.0°. Best body text is #FFFFFF at 9.59:1 contrast (WCAG AA passes).

Color values

HEX#2D4086
RGBrgb(45, 64, 134)
HSLhsl(227, 50%, 35%)
HSVhsv(227, 66%, 53%)
CMYKcmyk(66.4%, 52.2%, 0%, 47.5%)
CIE-LABlab(29.27, 16.58, -41.60)
CIE-LCHlch(29.27, 44.78, 291.73°)
OKLaboklab(39.64% -0.0021 -0.1193)
OKLCHoklch(39.64% 0.119 269)
XYZxyz(7.2172, 5.9453, 23.3168)
Luminance0.0595 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4086 #86732D
analogous
#2D6D86 #2D4086 #462D86
triadic
#2D4086 #862D40 #40862D
tetradic
#2D4086 #862D6D #86732D #2D8646
square
#2D4086 #862D6D #86732D #2D8646
split-complementary
#2D4086 #86462D #6D862D
monochromatic
#0E142A #1E2A58 #2D4086 #3C56B4 #6379CB

Accessibility & contrast

On white

9.59
#2D4086 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#2D4086 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4086
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4086#FFFFFF#000000##FFFFFF
##2D40861.009.592.199.59
#FFFFFF9.591.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#184989
Deuteranopia (green-blind)
#004185
Tritanopia (blue-blind)
#00505C
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2d4086;
/* rgb */ color: rgb(45, 64, 134);
/* oklch */ color: oklch(39.6% 0.119 269.0);
Tailwind
colors: {
  custom: {
    50: '#7074aa',
    500: '#2d4086',
    950: '#000000',
  },
}
SCSS
$custom: #2d4086;
$custom-light: #7074aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4086",
  "rgb": {
    "r": 45,
    "g": 64,
    "b": 134
  },
  "hsl": {
    "h": 227.191,
    "s": 49.721,
    "l": 35.098
  },
  "oklch": {
    "l": 0.39641,
    "c": 0.11928,
    "h": 269
  },
  "luminance": 0.05946
}

Semantic roles & 50–950 ramp

primary
#2D4086
secondary
#B19F5E
accent
#BC4FD9
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2D4086

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

Preview Lab → · Contrast checker → · Palette generator →

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