#2D3873#2D3873

#2D3873 is a dark, moderate blue. Relative luminance 0.046; OKLCH L 36.5% C 0.102 H 272.5°. Best body text is #FFFFFF at 10.91:1 contrast (WCAG AA passes).

Color values

HEX#2D3873
RGBrgb(45, 56, 115)
HSLhsl(231, 44%, 31%)
HSVhsv(231, 61%, 45%)
CMYKcmyk(60.9%, 51.3%, 0%, 54.9%)
CIE-LABlab(25.63, 14.98, -35.52)
CIE-LCHlch(25.63, 38.55, 292.87°)
OKLaboklab(36.46% 0.0044 -0.1015)
OKLCHoklch(36.46% 0.102 272.5)
XYZxyz(5.5899, 4.6236, 16.8142)
Luminance0.0462 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3873 #73682D
analogous
#2D5B73 #2D3873 #452D73
triadic
#2D3873 #732D38 #38732D
tetradic
#2D3873 #732D5B #73682D #2D7345
square
#2D3873 #732D5B #73682D #2D7345
split-complementary
#2D3873 #73452D #5B732D
monochromatic
#0B0D1B #1C2347 #2D3873 #3E4D9F #5B6BBF

Accessibility & contrast

On white

10.91
#2D3873 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D3873
10.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3873#FFFFFF#000000##FFFFFF
##2D38731.0010.911.9210.91
#FFFFFF10.911.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A4075
Deuteranopia (green-blind)
#0F3A72
Tritanopia (blue-blind)
#004550
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2d3873;
/* rgb */ color: rgb(45, 56, 115);
/* oklch */ color: oklch(36.5% 0.102 272.5);
Tailwind
colors: {
  custom: {
    50: '#6d6e9c',
    500: '#2d3873',
    950: '#000000',
  },
}
SCSS
$custom: #2d3873;
$custom-light: #6d6e9c;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3873",
  "rgb": {
    "r": 45,
    "g": 56,
    "b": 115
  },
  "hsl": {
    "h": 230.571,
    "s": 43.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.36456,
    "c": 0.10158,
    "h": 272.5
  },
  "luminance": 0.04624
}

Semantic roles & 50–950 ramp

primary
#2D3873
secondary
#A49857
accent
#C054D3
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07070E
muted
#7A7A7E

Preview Lab

Preview with #2D3873

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

Preview Lab → · Contrast checker → · Palette generator →

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