#2D4781#2D4781

#2D4781 is a dark, moderate blue. Relative luminance 0.066; OKLCH L 40.8% C 0.102 H 264.2°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#2D4781
RGBrgb(45, 71, 129)
HSLhsl(221, 48%, 34%)
HSVhsv(221, 65%, 51%)
CMYKcmyk(65.1%, 45%, 0%, 49.4%)
CIE-LABlab(30.99, 9.94, -35.73)
CIE-LCHlch(30.99, 37.09, 285.55°)
OKLaboklab(40.85% -0.0103 -0.1019)
OKLCHoklch(40.85% 0.102 264.2)
XYZxyz(7.2965, 6.6487, 21.6634)
Luminance0.0665 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4781 #81672D
analogous
#2D7181 #2D4781 #3D2D81
triadic
#2D4781 #812D47 #47812D
tetradic
#2D4781 #812D71 #81672D #2D813D
square
#2D4781 #812D71 #81672D #2D813D
split-complementary
#2D4781 #813D2D #71812D
monochromatic
#0D1526 #1D2E54 #2D4781 #3D60AE #6181C8

Accessibility & contrast

On white

9.01
#2D4781 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#2D4781 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4781
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4781#FFFFFF#000000##FFFFFF
##2D47811.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C4D83
Deuteranopia (green-blind)
#1F4580
Tritanopia (blue-blind)
#00545D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2d4781;
/* rgb */ color: rgb(45, 71, 129);
/* oklch */ color: oklch(40.8% 0.102 264.2);
Tailwind
colors: {
  custom: {
    50: '#6f79a6',
    500: '#2d4781',
    950: '#000000',
  },
}
SCSS
$custom: #2d4781;
$custom-light: #6f79a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4781",
  "rgb": {
    "r": 45,
    "g": 71,
    "b": 129
  },
  "hsl": {
    "h": 221.429,
    "s": 48.276,
    "l": 34.118
  },
  "oklch": {
    "l": 0.40847,
    "c": 0.10244,
    "h": 264.2
  },
  "luminance": 0.06649
}

Semantic roles & 50–950 ramp

primary
#2D4781
secondary
#AE955C
accent
#AE50D8
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08090F
muted
#7B7B7F

Preview Lab

Preview with #2D4781

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

Preview Lab → · Contrast checker → · Palette generator →

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