#2D4795#2D4795

#2D4795 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.3% C 0.132 H 266.8°. Best body text is #FFFFFF at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#2D4795
RGBrgb(45, 71, 149)
HSLhsl(225, 54%, 38%)
HSVhsv(225, 70%, 58%)
CMYKcmyk(69.8%, 52.3%, 0%, 41.6%)
CIE-LABlab(32.33, 17.51, -45.88)
CIE-LCHlch(32.33, 49.11, 290.89°)
OKLaboklab(42.3% -0.0074 -0.1318)
OKLCHoklch(42.3% 0.132 266.8)
XYZxyz(8.7584, 7.2334, 29.3626)
Luminance0.0723 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4795 #957B2D
analogous
#2D7B95 #2D4795 #472D95
triadic
#2D4795 #952D47 #47952D
tetradic
#2D4795 #952D7B #957B2D #2D9547
square
#2D4795 #952D7B #957B2D #2D9547
split-complementary
#2D4795 #95472D #7B952D
monochromatic
#111A37 #1F3166 #2D4795 #3B5DC4 #6A84D2

Accessibility & contrast

On white

8.58
#2D4795 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D4795
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4795#FFFFFF#000000##FFFFFF
##2D47951.008.582.458.58
#FFFFFF8.581.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#175198
Deuteranopia (green-blind)
#004893
Tritanopia (blue-blind)
#005967
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2d4795;
/* rgb */ color: rgb(45, 71, 149);
/* oklch */ color: oklch(42.3% 0.132 266.8);
Tailwind
colors: {
  custom: {
    50: '#7379b5',
    500: '#2d4795',
    950: '#000000',
  },
}
SCSS
$custom: #2d4795;
$custom-light: #7379b5;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4795",
  "rgb": {
    "r": 45,
    "g": 71,
    "b": 149
  },
  "hsl": {
    "h": 225,
    "s": 53.608,
    "l": 38.039
  },
  "oklch": {
    "l": 0.423,
    "c": 0.13197,
    "h": 266.8
  },
  "luminance": 0.07234
}

Semantic roles & 50–950 ramp

primary
#2D4795
secondary
#B9A465
accent
#B84BDD
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #2D4795

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

Preview Lab → · Contrast checker → · Palette generator →

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