#2D4089#2D4089

#2D4089 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 39.9% C 0.124 H 269.1°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#2D4089
RGBrgb(45, 64, 137)
HSLhsl(228, 51%, 36%)
HSVhsv(228, 67%, 54%)
CMYKcmyk(67.2%, 53.3%, 0%, 46.3%)
CIE-LABlab(29.49, 17.71, -43.11)
CIE-LCHlch(29.49, 46.61, 292.34°)
OKLaboklab(39.87% -0.0018 -0.1237)
OKLCHoklch(39.87% 0.124 269.1)
XYZxyz(7.4294, 6.0301, 24.4345)
Luminance0.0603 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4089 #89762D
analogous
#2D6E89 #2D4089 #482D89
triadic
#2D4089 #892D40 #40892D
tetradic
#2D4089 #892D6E #89762D #2D8948
square
#2D4089 #892D6E #89762D #2D8948
split-complementary
#2D4089 #89482D #6E892D
monochromatic
#0F152D #1E2A5B #2D4089 #3C56B7 #647ACC

Accessibility & contrast

On white

9.52
#2D4089 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#2D4089 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4089
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4089#FFFFFF#000000##FFFFFF
##2D40891.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#134A8C
Deuteranopia (green-blind)
#004288
Tritanopia (blue-blind)
#00515E
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2d4089;
/* rgb */ color: rgb(45, 64, 137);
/* oklch */ color: oklch(39.9% 0.124 269.1);
Tailwind
colors: {
  custom: {
    50: '#7174ac',
    500: '#2d4089',
    950: '#000000',
  },
}
SCSS
$custom: #2d4089;
$custom-light: #7174ac;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4089",
  "rgb": {
    "r": 45,
    "g": 64,
    "b": 137
  },
  "hsl": {
    "h": 227.609,
    "s": 50.549,
    "l": 35.686
  },
  "oklch": {
    "l": 0.39872,
    "c": 0.12372,
    "h": 269.1
  },
  "luminance": 0.06031
}

Semantic roles & 50–950 ramp

primary
#2D4089
secondary
#B3A15F
accent
#BD4EDA
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2D4089

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

Preview Lab → · Contrast checker → · Palette generator →

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