#2D4792#2D4792

#2D4792 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.1% C 0.128 H 266.5°. Best body text is #FFFFFF at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#2D4792
RGBrgb(45, 71, 146)
HSLhsl(225, 53%, 37%)
HSVhsv(225, 69%, 57%)
CMYKcmyk(69.2%, 51.4%, 0%, 42.7%)
CIE-LABlab(32.12, 16.37, -44.39)
CIE-LCHlch(32.12, 47.32, 290.24°)
OKLaboklab(42.07% -0.0077 -0.1274)
OKLCHoklch(42.07% 0.128 266.5)
XYZxyz(8.5219, 7.1389, 28.1174)
Luminance0.0714 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4792 #92782D
analogous
#2D7A92 #2D4792 #452D92
triadic
#2D4792 #922D47 #47922D
tetradic
#2D4792 #922D7A #92782D #2D9245
square
#2D4792 #922D7A #92782D #2D9245
split-complementary
#2D4792 #92452D #7A922D
monochromatic
#101A34 #1F3063 #2D4792 #3B5EC1 #6983D1

Accessibility & contrast

On white

8.65
#2D4792 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#2D4792 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4792
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4792#FFFFFF#000000##FFFFFF
##2D47921.008.652.438.65
#FFFFFF8.651.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C5095
Deuteranopia (green-blind)
#004790
Tritanopia (blue-blind)
#005965
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2d4792;
/* rgb */ color: rgb(45, 71, 146);
/* oklch */ color: oklch(42.1% 0.128 266.5);
Tailwind
colors: {
  custom: {
    50: '#7279b2',
    500: '#2d4792',
    950: '#000000',
  },
}
SCSS
$custom: #2d4792;
$custom-light: #7279b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4792",
  "rgb": {
    "r": 45,
    "g": 71,
    "b": 146
  },
  "hsl": {
    "h": 224.554,
    "s": 52.88,
    "l": 37.451
  },
  "oklch": {
    "l": 0.42072,
    "c": 0.12761,
    "h": 266.5
  },
  "luminance": 0.0714
}

Semantic roles & 50–950 ramp

primary
#2D4792
secondary
#B7A263
accent
#B74CDC
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #2D4792

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

Preview Lab → · Contrast checker → · Palette generator →

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