#2D4085#2D4085

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

Color values

HEX#2D4085
RGBrgb(45, 64, 133)
HSLhsl(227, 49%, 35%)
HSVhsv(227, 66%, 52%)
CMYKcmyk(66.2%, 51.9%, 0%, 47.8%)
CIE-LABlab(29.20, 16.21, -41.09)
CIE-LCHlch(29.20, 44.17, 291.52°)
OKLaboklab(39.57% -0.0023 -0.1178)
OKLCHoklch(39.57% 0.118 268.9)
XYZxyz(7.1478, 5.9175, 22.9513)
Luminance0.0592 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4085 #85722D
analogous
#2D6C85 #2D4085 #462D85
triadic
#2D4085 #852D40 #40852D
tetradic
#2D4085 #852D6C #85722D #2D8546
square
#2D4085 #852D6C #85722D #2D8546
split-complementary
#2D4085 #85462D #6C852D
monochromatic
#0E142A #1E2A57 #2D4085 #3C56B3 #6279CA

Accessibility & contrast

On white

9.62
#2D4085 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#2D4085 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4085
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4085#FFFFFF#000000##FFFFFF
##2D40851.009.622.189.62
#FFFFFF9.621.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.621.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d4085;
/* rgb */ color: rgb(45, 64, 133);
/* oklch */ color: oklch(39.6% 0.118 268.9);
Tailwind
colors: {
  custom: {
    50: '#7074a9',
    500: '#2d4085',
    950: '#000000',
  },
}
SCSS
$custom: #2d4085;
$custom-light: #7074a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4085",
  "rgb": {
    "r": 45,
    "g": 64,
    "b": 133
  },
  "hsl": {
    "h": 227.045,
    "s": 49.438,
    "l": 34.902
  },
  "oklch": {
    "l": 0.39565,
    "c": 0.11779,
    "h": 268.9
  },
  "luminance": 0.05918
}

Semantic roles & 50–950 ramp

primary
#2D4085
secondary
#B09F5D
accent
#BB4FD9
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2D4085

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

Preview Lab → · Contrast checker → · Palette generator →

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