#2D3877#2D3877

#2D3877 is a dark, moderate blue. Relative luminance 0.047; OKLCH L 36.8% C 0.108 H 272.6°. Best body text is #FFFFFF at 10.80:1 contrast (WCAG AA passes).

Color values

HEX#2D3877
RGBrgb(45, 56, 119)
HSLhsl(231, 45%, 32%)
HSVhsv(231, 62%, 47%)
CMYKcmyk(62.2%, 52.9%, 0%, 53.3%)
CIE-LABlab(25.91, 16.46, -37.61)
CIE-LCHlch(25.91, 41.05, 293.64°)
OKLaboklab(36.76% 0.0048 -0.1076)
OKLCHoklch(36.76% 0.108 272.6)
XYZxyz(5.8250, 4.7177, 18.0528)
Luminance0.0472 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3877 #776C2D
analogous
#2D5D77 #2D3877 #472D77
triadic
#2D3877 #772D38 #38772D
tetradic
#2D3877 #772D5D #776C2D #2D7747
square
#2D3877 #772D5D #776C2D #2D7747
split-complementary
#2D3877 #77472D #5D772D
monochromatic
#0B0E1E #1C234B #2D3877 #3E4DA3 #5D6CC2

Accessibility & contrast

On white

10.80
#2D3877 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#2D3877 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D3877
10.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3877#FFFFFF#000000##FFFFFF
##2D38771.0010.801.9410.80
#FFFFFF10.801.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#164179
Deuteranopia (green-blind)
#053A76
Tritanopia (blue-blind)
#004652
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2d3877;
/* rgb */ color: rgb(45, 56, 119);
/* oklch */ color: oklch(36.8% 0.108 272.6);
Tailwind
colors: {
  custom: {
    50: '#6e6e9f',
    500: '#2d3877',
    950: '#000000',
  },
}
SCSS
$custom: #2d3877;
$custom-light: #6e6e9f;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3877",
  "rgb": {
    "r": 45,
    "g": 56,
    "b": 119
  },
  "hsl": {
    "h": 231.081,
    "s": 45.122,
    "l": 32.157
  },
  "oklch": {
    "l": 0.36758,
    "c": 0.10774,
    "h": 272.6
  },
  "luminance": 0.04718
}

Semantic roles & 50–950 ramp

primary
#2D3877
secondary
#A89C58
accent
#C253D5
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08070E
muted
#7B7A7E

Preview Lab

Preview with #2D3877

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

Preview Lab → · Contrast checker → · Palette generator →

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