#2D3871#2D3871

#2D3871 is a dark, moderate blue. Relative luminance 0.046; OKLCH L 36.3% C 0.098 H 272.4°. Best body text is #FFFFFF at 10.96:1 contrast (WCAG AA passes).

Color values

HEX#2D3871
RGBrgb(45, 56, 113)
HSLhsl(230, 43%, 31%)
HSVhsv(230, 60%, 44%)
CMYKcmyk(60.2%, 50.4%, 0%, 55.7%)
CIE-LABlab(25.50, 14.25, -34.46)
CIE-LCHlch(25.50, 37.29, 292.46°)
OKLaboklab(36.31% 0.0041 -0.0984)
OKLCHoklch(36.31% 0.098 272.4)
XYZxyz(5.4760, 4.5781, 16.2147)
Luminance0.0458 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3871 #71662D
analogous
#2D5A71 #2D3871 #442D71
triadic
#2D3871 #712D38 #38712D
tetradic
#2D3871 #712D5A #71662D #2D7144
square
#2D3871 #712D5A #71662D #2D7144
split-complementary
#2D3871 #71442D #5A712D
monochromatic
#0A0D19 #1C2245 #2D3871 #3E4E9D #5B6BBE

Accessibility & contrast

On white

10.96
#2D3871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#2D3871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D3871
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3871#FFFFFF#000000##FFFFFF
##2D38711.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C3F73
Deuteranopia (green-blind)
#123A70
Tritanopia (blue-blind)
#01454F
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2d3871;
/* rgb */ color: rgb(45, 56, 113);
/* oklch */ color: oklch(36.3% 0.098 272.4);
Tailwind
colors: {
  custom: {
    50: '#6c6e9a',
    500: '#2d3871',
    950: '#000000',
  },
}
SCSS
$custom: #2d3871;
$custom-light: #6c6e9a;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3871",
  "rgb": {
    "r": 45,
    "g": 56,
    "b": 113
  },
  "hsl": {
    "h": 230.294,
    "s": 43.038,
    "l": 30.98
  },
  "oklch": {
    "l": 0.36308,
    "c": 0.09848,
    "h": 272.4
  },
  "luminance": 0.04578
}

Semantic roles & 50–950 ramp

primary
#2D3871
secondary
#A39657
accent
#BE55D3
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07070E
muted
#7A7A7E

Preview Lab

Preview with #2D3871

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

Preview Lab → · Contrast checker → · Palette generator →

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