#2D4271#2D4271

#2D4271 is a dark, moderate blue. Relative luminance 0.056; OKLCH L 38.6% C 0.085 H 264.6°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#2D4271
RGBrgb(45, 66, 113)
HSLhsl(221, 43%, 31%)
HSVhsv(221, 60%, 44%)
CMYKcmyk(60.2%, 41.6%, 0%, 55.7%)
CIE-LABlab(28.50, 7.38, -29.67)
CIE-LCHlch(28.50, 30.57, 283.97°)
OKLaboklab(38.61% -0.008 -0.0842)
OKLCHoklch(38.61% 0.085 264.6)
XYZxyz(6.0100, 5.6461, 16.3927)
Luminance0.0565 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4271 #715C2D
analogous
#2D6471 #2D4271 #3A2D71
triadic
#2D4271 #712D42 #42712D
tetradic
#2D4271 #712D64 #715C2D #2D713A
square
#2D4271 #712D64 #715C2D #2D713A
split-complementary
#2D4271 #713A2D #64712D
monochromatic
#0A0F19 #1C2845 #2D4271 #3E5C9D #5B79BE

Accessibility & contrast

On white

9.86
#2D4271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#2D4271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4271
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4271#FFFFFF#000000##FFFFFF
##2D42711.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E4773
Deuteranopia (green-blind)
#254070
Tritanopia (blue-blind)
#004C54
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2d4271;
/* rgb */ color: rgb(45, 66, 113);
/* oklch */ color: oklch(38.6% 0.085 264.6);
Tailwind
colors: {
  custom: {
    50: '#6c769a',
    500: '#2d4271',
    950: '#000000',
  },
}
SCSS
$custom: #2d4271;
$custom-light: #6c769a;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4271",
  "rgb": {
    "r": 45,
    "g": 66,
    "b": 113
  },
  "hsl": {
    "h": 221.471,
    "s": 43.038,
    "l": 30.98
  },
  "oklch": {
    "l": 0.38609,
    "c": 0.08458,
    "h": 264.6
  },
  "luminance": 0.05647
}

Semantic roles & 50–950 ramp

primary
#2D4271
secondary
#A38B57
accent
#AC55D3
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07080E
muted
#7A7B7E

Preview Lab

Preview with #2D4271

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

Preview Lab → · Contrast checker → · Palette generator →

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