#2D3371#2D3371

#2D3371 is a dark, moderate blue. Relative luminance 0.041; OKLCH L 35.2% C 0.106 H 275.4°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#2D3371
RGBrgb(45, 51, 113)
HSLhsl(235, 43%, 31%)
HSVhsv(235, 60%, 44%)
CMYKcmyk(60.2%, 54.9%, 0%, 55.7%)
CIE-LABlab(24.06, 17.71, -36.78)
CIE-LCHlch(24.06, 40.82, 295.71°)
OKLaboklab(35.22% 0.01 -0.1053)
OKLCHoklch(35.22% 0.106 275.4)
XYZxyz(5.2457, 4.1174, 16.1379)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3371 #716B2D
analogous
#2D5571 #2D3371 #492D71
triadic
#2D3371 #712D33 #33712D
tetradic
#2D3371 #712D55 #716B2D #2D7149
square
#2D3371 #712D55 #716B2D #2D7149
split-complementary
#2D3371 #71492D #55712D
monochromatic
#0A0B19 #1C1F45 #2D3371 #3E479D #5B64BE

Accessibility & contrast

On white

11.52
#2D3371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#2D3371 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D3371
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3371#FFFFFF#000000##FFFFFF
##2D33711.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#103C73
Deuteranopia (green-blind)
#023670
Tritanopia (blue-blind)
#03414C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2d3371;
/* rgb */ color: rgb(45, 51, 113);
/* oklch */ color: oklch(35.2% 0.106 275.4);
Tailwind
colors: {
  custom: {
    50: '#6d6a9a',
    500: '#2d3371',
    950: '#000000',
  },
}
SCSS
$custom: #2d3371;
$custom-light: #6d6a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3371",
  "rgb": {
    "r": 45,
    "g": 51,
    "b": 113
  },
  "hsl": {
    "h": 234.706,
    "s": 43.038,
    "l": 30.98
  },
  "oklch": {
    "l": 0.35219,
    "c": 0.10573,
    "h": 275.4
  },
  "luminance": 0.04118
}

Semantic roles & 50–950 ramp

primary
#2D3371
secondary
#A39C57
accent
#C855D3
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #2D3371

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

Preview Lab → · Contrast checker → · Palette generator →

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