#2D4796#2D4796

#2D4796 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.4% C 0.133 H 266.9°. Best body text is #FFFFFF at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#2D4796
RGBrgb(45, 71, 150)
HSLhsl(225, 54%, 38%)
HSVhsv(225, 70%, 59%)
CMYKcmyk(70%, 52.7%, 0%, 41.2%)
CIE-LABlab(32.40, 17.89, -46.38)
CIE-LCHlch(32.40, 49.71, 291.09°)
OKLaboklab(42.38% -0.0073 -0.1332)
OKLCHoklch(42.38% 0.133 266.9)
XYZxyz(8.8385, 7.2655, 29.7848)
Luminance0.0727 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4796 #967C2D
analogous
#2D7B96 #2D4796 #472D96
triadic
#2D4796 #962D47 #47962D
tetradic
#2D4796 #962D7B #967C2D #2D9647
square
#2D4796 #962D7B #967C2D #2D9647
split-complementary
#2D4796 #96472D #7B962D
monochromatic
#111A38 #1F3167 #2D4796 #3C5EC4 #6B85D3

Accessibility & contrast

On white

8.56
#2D4796 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#2D4796 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4796
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4796#FFFFFF#000000##FFFFFF
##2D47961.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#165199
Deuteranopia (green-blind)
#004894
Tritanopia (blue-blind)
#005A67
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2d4796;
/* rgb */ color: rgb(45, 71, 150);
/* oklch */ color: oklch(42.4% 0.133 266.9);
Tailwind
colors: {
  custom: {
    50: '#7379b5',
    500: '#2d4796',
    950: '#000000',
  },
}
SCSS
$custom: #2d4796;
$custom-light: #7379b5;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4796",
  "rgb": {
    "r": 45,
    "g": 71,
    "b": 150
  },
  "hsl": {
    "h": 225.143,
    "s": 53.846,
    "l": 38.235
  },
  "oklch": {
    "l": 0.42377,
    "c": 0.13342,
    "h": 266.9
  },
  "luminance": 0.07266
}

Semantic roles & 50–950 ramp

primary
#2D4796
secondary
#B9A565
accent
#B94BDD
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #2D4796

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

Preview Lab → · Contrast checker → · Palette generator →

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