#2D4081#2D4081

#2D4081 is a dark, moderate blue. Relative luminance 0.058; OKLCH L 39.3% C 0.112 H 268.6°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#2D4081
RGBrgb(45, 64, 129)
HSLhsl(226, 48%, 34%)
HSVhsv(226, 65%, 51%)
CMYKcmyk(65.1%, 50.4%, 0%, 49.4%)
CIE-LABlab(28.93, 14.70, -39.05)
CIE-LCHlch(28.93, 41.72, 290.63°)
OKLaboklab(39.27% -0.0027 -0.1118)
OKLCHoklch(39.27% 0.112 268.6)
XYZxyz(6.8767, 5.8091, 21.5235)
Luminance0.0581 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4081 #816E2D
analogous
#2D6A81 #2D4081 #442D81
triadic
#2D4081 #812D40 #40812D
tetradic
#2D4081 #812D6A #816E2D #2D8144
square
#2D4081 #812D6A #816E2D #2D8144
split-complementary
#2D4081 #81442D #6A812D
monochromatic
#0D1326 #1D2954 #2D4081 #3D57AE #6178C8

Accessibility & contrast

On white

9.71
#2D4081 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#2D4081 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4081
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4081#FFFFFF#000000##FFFFFF
##2D40811.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4883
Deuteranopia (green-blind)
#0C4180
Tritanopia (blue-blind)
#004F5A
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2d4081;
/* rgb */ color: rgb(45, 64, 129);
/* oklch */ color: oklch(39.3% 0.112 268.6);
Tailwind
colors: {
  custom: {
    50: '#6f74a6',
    500: '#2d4081',
    950: '#000000',
  },
}
SCSS
$custom: #2d4081;
$custom-light: #6f74a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4081",
  "rgb": {
    "r": 45,
    "g": 64,
    "b": 129
  },
  "hsl": {
    "h": 226.429,
    "s": 48.276,
    "l": 34.118
  },
  "oklch": {
    "l": 0.39265,
    "c": 0.11179,
    "h": 268.6
  },
  "luminance": 0.0581
}

Semantic roles & 50–950 ramp

primary
#2D4081
secondary
#AE9B5C
accent
#B950D8
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #2D4081

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

Preview Lab → · Contrast checker → · Palette generator →

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