#2D4989#2D4989

#2D4989 is a dark, moderate blue. Relative luminance 0.071; OKLCH L 41.9% C 0.112 H 264.3°. Best body text is #FFFFFF at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#2D4989
RGBrgb(45, 73, 137)
HSLhsl(222, 51%, 36%)
HSVhsv(222, 67%, 54%)
CMYKcmyk(67.2%, 46.7%, 0%, 46.3%)
CIE-LABlab(32.10, 11.61, -38.91)
CIE-LCHlch(32.10, 40.61, 286.61°)
OKLaboklab(41.86% -0.011 -0.1112)
OKLCHoklch(41.86% 0.112 264.3)
XYZxyz(7.9785, 7.1284, 24.6175)
Luminance0.0713 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4989 #896D2D
analogous
#2D7789 #2D4989 #3F2D89
triadic
#2D4989 #892D49 #49892D
tetradic
#2D4989 #892D77 #896D2D #2D893F
square
#2D4989 #892D77 #896D2D #2D893F
split-complementary
#2D4989 #893F2D #77892D
monochromatic
#0F182D #1E305B #2D4989 #3C62B7 #6484CC

Accessibility & contrast

On white

8.66
#2D4989 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D4989
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4989#FFFFFF#000000##FFFFFF
##2D49891.008.662.438.66
#FFFFFF8.661.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A508B
Deuteranopia (green-blind)
#194888
Tritanopia (blue-blind)
#005862
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2d4989;
/* rgb */ color: rgb(45, 73, 137);
/* oklch */ color: oklch(41.9% 0.112 264.3);
Tailwind
colors: {
  custom: {
    50: '#707bac',
    500: '#2d4989',
    950: '#000000',
  },
}
SCSS
$custom: #2d4989;
$custom-light: #707bac;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4989",
  "rgb": {
    "r": 45,
    "g": 73,
    "b": 137
  },
  "hsl": {
    "h": 221.739,
    "s": 50.549,
    "l": 35.686
  },
  "oklch": {
    "l": 0.4186,
    "c": 0.11177,
    "h": 264.3
  },
  "luminance": 0.07129
}

Semantic roles & 50–950 ramp

primary
#2D4989
secondary
#B3995F
accent
#AF4EDA
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #2D4989

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

Preview Lab → · Contrast checker → · Palette generator →

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