#2D4791#2D4791

#2D4791 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.0% C 0.126 H 266.4°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#2D4791
RGBrgb(45, 71, 145)
HSLhsl(224, 53%, 37%)
HSVhsv(224, 69%, 57%)
CMYKcmyk(69%, 51%, 0%, 43.1%)
CIE-LABlab(32.05, 15.99, -43.89)
CIE-LCHlch(32.05, 46.72, 290.02°)
OKLaboklab(42% -0.0078 -0.1259)
OKLCHoklch(42% 0.126 266.4)
XYZxyz(8.4445, 7.1079, 27.7095)
Luminance0.0711 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4791 #91772D
analogous
#2D7991 #2D4791 #452D91
triadic
#2D4791 #912D47 #47912D
tetradic
#2D4791 #912D79 #91772D #2D9145
square
#2D4791 #912D79 #91772D #2D9145
split-complementary
#2D4791 #91452D #79912D
monochromatic
#101934 #1F3062 #2D4791 #3B5EC0 #6883D0

Accessibility & contrast

On white

8.67
#2D4791 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#2D4791 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4791
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4791#FFFFFF#000000##FFFFFF
##2D47911.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D5094
Deuteranopia (green-blind)
#00478F
Tritanopia (blue-blind)
#005865
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2d4791;
/* rgb */ color: rgb(45, 71, 145);
/* oklch */ color: oklch(42.0% 0.126 266.4);
Tailwind
colors: {
  custom: {
    50: '#7279b2',
    500: '#2d4791',
    950: '#000000',
  },
}
SCSS
$custom: #2d4791;
$custom-light: #7279b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4791",
  "rgb": {
    "r": 45,
    "g": 71,
    "b": 145
  },
  "hsl": {
    "h": 224.4,
    "s": 52.632,
    "l": 37.255
  },
  "oklch": {
    "l": 0.41997,
    "c": 0.12616,
    "h": 266.4
  },
  "luminance": 0.07109
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D4791

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

Preview Lab → · Contrast checker → · Palette generator →

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