#2D4071#2D4071

#2D4071 is a dark, moderate blue. Relative luminance 0.054; OKLCH L 38.1% C 0.087 H 266.4°. Best body text is #FFFFFF at 10.08:1 contrast (WCAG AA passes).

Color values

HEX#2D4071
RGBrgb(45, 64, 113)
HSLhsl(223, 43%, 31%)
HSVhsv(223, 60%, 44%)
CMYKcmyk(60.2%, 43.4%, 0%, 55.7%)
CIE-LABlab(27.89, 8.74, -30.64)
CIE-LCHlch(27.89, 31.86, 285.92°)
OKLaboklab(38.14% -0.0055 -0.0871)
OKLCHoklch(38.14% 0.087 266.4)
XYZxyz(5.8952, 5.4165, 16.3544)
Luminance0.0542 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4071 #715E2D
analogous
#2D6271 #2D4071 #3C2D71
triadic
#2D4071 #712D40 #40712D
tetradic
#2D4071 #712D62 #715E2D #2D713C
square
#2D4071 #712D62 #715E2D #2D713C
split-complementary
#2D4071 #713C2D #62712D
monochromatic
#0A0E19 #1C2745 #2D4071 #3E599D #5B76BE

Accessibility & contrast

On white

10.08
#2D4071 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#2D4071 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4071
10.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4071#FFFFFF#000000##FFFFFF
##2D40711.0010.082.0810.08
#FFFFFF10.081.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B4573
Deuteranopia (green-blind)
#223F70
Tritanopia (blue-blind)
#004B53
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2d4071;
/* rgb */ color: rgb(45, 64, 113);
/* oklch */ color: oklch(38.1% 0.087 266.4);
Tailwind
colors: {
  custom: {
    50: '#6c749a',
    500: '#2d4071',
    950: '#000000',
  },
}
SCSS
$custom: #2d4071;
$custom-light: #6c749a;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4071",
  "rgb": {
    "r": 45,
    "g": 64,
    "b": 113
  },
  "hsl": {
    "h": 223.235,
    "s": 43.038,
    "l": 30.98
  },
  "oklch": {
    "l": 0.38138,
    "c": 0.08725,
    "h": 266.4
  },
  "luminance": 0.05417
}

Semantic roles & 50–950 ramp

primary
#2D4071
secondary
#A38D57
accent
#B055D3
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07080E
muted
#7A7B7E

Preview Lab

Preview with #2D4071

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

Preview Lab → · Contrast checker → · Palette generator →

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