#2D4197#2D4197

#2D4197 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.2% C 0.143 H 269.3°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#2D4197
RGBrgb(45, 65, 151)
HSLhsl(229, 54%, 38%)
HSVhsv(229, 70%, 59%)
CMYKcmyk(70.2%, 57%, 0%, 40.8%)
CIE-LABlab(30.81, 22.31, -49.56)
CIE-LCHlch(30.81, 54.35, 294.24°)
OKLaboklab(41.2% -0.0018 -0.1427)
OKLCHoklch(41.2% 0.143 269.3)
XYZxyz(8.5565, 6.5720, 30.0897)
Luminance0.0657 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4197 #97832D
analogous
#2D7697 #2D4197 #4E2D97
triadic
#2D4197 #972D41 #41972D
tetradic
#2D4197 #972D76 #97832D #2D974E
square
#2D4197 #972D76 #97832D #2D974E
split-complementary
#2D4197 #974E2D #76972D
monochromatic
#111839 #1F2D68 #2D4197 #3C56C5 #6B7FD3

Accessibility & contrast

On white

9.07
#2D4197 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#2D4197 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4197
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4197#FFFFFF#000000##FFFFFF
##2D41971.009.072.319.07
#FFFFFF9.071.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9A
Deuteranopia (green-blind)
#004495
Tritanopia (blue-blind)
#005665
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2d4197;
/* rgb */ color: rgb(45, 65, 151);
/* oklch */ color: oklch(41.2% 0.143 269.3);
Tailwind
colors: {
  custom: {
    50: '#7475b6',
    500: '#2d4197',
    950: '#000000',
  },
}
SCSS
$custom: #2d4197;
$custom-light: #7475b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4197",
  "rgb": {
    "r": 45,
    "g": 65,
    "b": 151
  },
  "hsl": {
    "h": 228.679,
    "s": 54.082,
    "l": 38.431
  },
  "oklch": {
    "l": 0.412,
    "c": 0.14269,
    "h": 269.3
  },
  "luminance": 0.06573
}

Semantic roles & 50–950 ramp

primary
#2D4197
secondary
#BAAA66
accent
#C24ADD
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2D4197

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

Preview Lab → · Contrast checker → · Palette generator →

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