#2D4786#2D4786

#2D4786 is a dark, moderate blue. Relative luminance 0.068; OKLCH L 41.2% C 0.110 H 265.1°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#2D4786
RGBrgb(45, 71, 134)
HSLhsl(222, 50%, 35%)
HSVhsv(222, 66%, 53%)
CMYKcmyk(66.4%, 47%, 0%, 47.5%)
CIE-LABlab(31.31, 11.83, -38.32)
CIE-LCHlch(31.31, 40.10, 287.15°)
OKLaboklab(41.2% -0.0094 -0.1095)
OKLCHoklch(41.2% 0.11 265.1)
XYZxyz(7.6370, 6.7849, 23.4568)
Luminance0.0679 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4786 #866C2D
analogous
#2D7386 #2D4786 #3F2D86
triadic
#2D4786 #862D47 #47862D
tetradic
#2D4786 #862D73 #866C2D #2D863F
square
#2D4786 #862D73 #866C2D #2D863F
split-complementary
#2D4786 #863F2D #73862D
monochromatic
#0E162A #1E2F58 #2D4786 #3C5FB4 #6381CB

Accessibility & contrast

On white

8.91
#2D4786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#2D4786 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4786
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4786#FFFFFF#000000##FFFFFF
##2D47861.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#284E88
Deuteranopia (green-blind)
#194685
Tritanopia (blue-blind)
#005560
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2d4786;
/* rgb */ color: rgb(45, 71, 134);
/* oklch */ color: oklch(41.2% 0.110 265.1);
Tailwind
colors: {
  custom: {
    50: '#7079aa',
    500: '#2d4786',
    950: '#000000',
  },
}
SCSS
$custom: #2d4786;
$custom-light: #7079aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4786",
  "rgb": {
    "r": 45,
    "g": 71,
    "b": 134
  },
  "hsl": {
    "h": 222.472,
    "s": 49.721,
    "l": 35.098
  },
  "oklch": {
    "l": 0.41195,
    "c": 0.10993,
    "h": 265.1
  },
  "luminance": 0.06786
}

Semantic roles & 50–950 ramp

primary
#2D4786
secondary
#B1995E
accent
#B14FD9
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #2D4786

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

Preview Lab → · Contrast checker → · Palette generator →

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