#2D3C71#2D3C71

#2D3C71 is a dark, moderate blue. Relative luminance 0.050; OKLCH L 37.2% C 0.093 H 269.6°. Best body text is #FFFFFF at 10.52:1 contrast (WCAG AA passes).

Color values

HEX#2D3C71
RGBrgb(45, 60, 113)
HSLhsl(227, 43%, 31%)
HSVhsv(227, 60%, 44%)
CMYKcmyk(60.2%, 46.9%, 0%, 55.7%)
CIE-LABlab(26.68, 11.48, -32.57)
CIE-LCHlch(26.68, 34.53, 289.42°)
OKLaboklab(37.21% -0.0007 -0.0928)
OKLCHoklch(37.21% 0.093 269.6)
XYZxyz(5.6777, 4.9814, 16.2819)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3C71 #71622D
analogous
#2D5E71 #2D3C71 #402D71
triadic
#2D3C71 #712D3C #3C712D
tetradic
#2D3C71 #712D5E #71622D #2D7140
square
#2D3C71 #712D5E #71622D #2D7140
split-complementary
#2D3C71 #71402D #5E712D
monochromatic
#0A0E19 #1C2545 #2D3C71 #3E539D #5B71BE

Accessibility & contrast

On white

10.52
#2D3C71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#2D3C71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D3C71
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3C71#FFFFFF#000000##FFFFFF
##2D3C711.0010.522.0010.52
#FFFFFF10.521.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#244273
Deuteranopia (green-blind)
#1B3C70
Tritanopia (blue-blind)
#004851
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2d3c71;
/* rgb */ color: rgb(45, 60, 113);
/* oklch */ color: oklch(37.2% 0.093 269.6);
Tailwind
colors: {
  custom: {
    50: '#6c719a',
    500: '#2d3c71',
    950: '#000000',
  },
}
SCSS
$custom: #2d3c71;
$custom-light: #6c719a;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3c71",
  "rgb": {
    "r": 45,
    "g": 60,
    "b": 113
  },
  "hsl": {
    "h": 226.765,
    "s": 43.038,
    "l": 30.98
  },
  "oklch": {
    "l": 0.37211,
    "c": 0.09277,
    "h": 269.6
  },
  "luminance": 0.04982
}

Semantic roles & 50–950 ramp

primary
#2D3C71
secondary
#A39257
accent
#B755D3
background
#F6F6F9
surface
#ECECF2
border
#C7C7CC
text
#07070E
muted
#7A7A7E

Preview Lab

Preview with #2D3C71

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

Preview Lab → · Contrast checker → · Palette generator →

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