#2D4397#2D4397

#2D4397 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.6% C 0.140 H 268.5°. Best body text is #FFFFFF at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#2D4397
RGBrgb(45, 67, 151)
HSLhsl(228, 54%, 38%)
HSVhsv(228, 70%, 59%)
CMYKcmyk(70.2%, 55.6%, 0%, 40.8%)
CIE-LABlab(31.36, 20.97, -48.67)
CIE-LCHlch(31.36, 53.00, 293.30°)
OKLaboklab(41.61% -0.0035 -0.14)
OKLCHoklch(41.61% 0.14 268.5)
XYZxyz(8.6733, 6.8057, 30.1287)
Luminance0.0681 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4397 #97812D
analogous
#2D7897 #2D4397 #4C2D97
triadic
#2D4397 #972D43 #43972D
tetradic
#2D4397 #972D78 #97812D #2D974C
square
#2D4397 #972D78 #97812D #2D974C
split-complementary
#2D4397 #974C2D #78972D
monochromatic
#111939 #1F2E68 #2D4397 #3C59C5 #6B81D3

Accessibility & contrast

On white

8.89
#2D4397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#2D4397 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4397
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4397#FFFFFF#000000##FFFFFF
##2D43971.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9A
Deuteranopia (green-blind)
#004595
Tritanopia (blue-blind)
#005766
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2d4397;
/* rgb */ color: rgb(45, 67, 151);
/* oklch */ color: oklch(41.6% 0.140 268.5);
Tailwind
colors: {
  custom: {
    50: '#7476b6',
    500: '#2d4397',
    950: '#000000',
  },
}
SCSS
$custom: #2d4397;
$custom-light: #7476b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4397",
  "rgb": {
    "r": 45,
    "g": 67,
    "b": 151
  },
  "hsl": {
    "h": 227.547,
    "s": 54.082,
    "l": 38.431
  },
  "oklch": {
    "l": 0.41612,
    "c": 0.14007,
    "h": 268.5
  },
  "luminance": 0.06807
}

Semantic roles & 50–950 ramp

primary
#2D4397
secondary
#BAA866
accent
#BF4ADD
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2D4397

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

Preview Lab → · Contrast checker → · Palette generator →

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