#2D3771#2D3771

#2D3771 is a dark, moderate blue. Relative luminance 0.045; OKLCH L 36.1% C 0.100 H 273.0°. Best body text is #FFFFFF at 11.07:1 contrast (WCAG AA passes).

Color values

HEX#2D3771
RGBrgb(45, 55, 113)
HSLhsl(231, 43%, 31%)
HSVhsv(231, 60%, 44%)
CMYKcmyk(60.2%, 51.3%, 0%, 55.7%)
CIE-LABlab(25.21, 14.94, -34.93)
CIE-LCHlch(25.21, 37.99, 293.15°)
OKLaboklab(36.09% 0.0053 -0.0998)
OKLCHoklch(36.09% 0.1 273)
XYZxyz(5.4280, 4.4821, 16.1987)
Luminance0.0448 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3771 #71672D
analogous
#2D5971 #2D3771 #452D71
triadic
#2D3771 #712D37 #37712D
tetradic
#2D3771 #712D59 #71672D #2D7145
square
#2D3771 #712D59 #71672D #2D7145
split-complementary
#2D3771 #71452D #59712D
monochromatic
#0A0C19 #1C2245 #2D3771 #3E4C9D #5B69BE

Accessibility & contrast

On white

11.07
#2D3771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#2D3771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D3771
11.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3771#FFFFFF#000000##FFFFFF
##2D37711.0011.071.9011.07
#FFFFFF11.071.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A3F73
Deuteranopia (green-blind)
#0F3970
Tritanopia (blue-blind)
#02444E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2d3771;
/* rgb */ color: rgb(45, 55, 113);
/* oklch */ color: oklch(36.1% 0.100 273.0);
Tailwind
colors: {
  custom: {
    50: '#6c6d9a',
    500: '#2d3771',
    950: '#000000',
  },
}
SCSS
$custom: #2d3771;
$custom-light: #6c6d9a;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3771",
  "rgb": {
    "r": 45,
    "g": 55,
    "b": 113
  },
  "hsl": {
    "h": 231.176,
    "s": 43.038,
    "l": 30.98
  },
  "oklch": {
    "l": 0.36087,
    "c": 0.09991,
    "h": 273
  },
  "luminance": 0.04483
}

Semantic roles & 50–950 ramp

primary
#2D3771
secondary
#A39757
accent
#C055D3
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07070E
muted
#7A7A7E

Preview Lab

Preview with #2D3771

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

Preview Lab → · Contrast checker → · Palette generator →

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