#2D3999#2D3999

#2D3999 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.8% C 0.156 H 271.8°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#2D3999
RGBrgb(45, 57, 153)
HSLhsl(233, 55%, 39%)
HSVhsv(233, 71%, 60%)
CMYKcmyk(70.6%, 62.7%, 0%, 40%)
CIE-LABlab(28.86, 28.41, -53.96)
CIE-LCHlch(28.86, 60.98, 297.77°)
OKLaboklab(39.8% 0.0049 -0.1557)
OKLCHoklch(39.8% 0.156 271.8)
XYZxyz(8.2931, 5.7833, 30.8100)
Luminance0.0578 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3999 #998D2D
analogous
#2D6F99 #2D3999 #572D99
triadic
#2D3999 #992D39 #39992D
tetradic
#2D3999 #992D6F #998D2D #2D9957
square
#2D3999 #992D6F #998D2D #2D9957
split-complementary
#2D3999 #99572D #6F992D
monochromatic
#11163A #1F276A #2D3999 #3D4CC6 #6C78D4

Accessibility & contrast

On white

9.74
#2D3999 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#2D3999 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D3999
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3999#FFFFFF#000000##FFFFFF
##2D39991.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499C
Deuteranopia (green-blind)
#003F97
Tritanopia (blue-blind)
#005163
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2d3999;
/* rgb */ color: rgb(45, 57, 153);
/* oklch */ color: oklch(39.8% 0.156 271.8);
Tailwind
colors: {
  custom: {
    50: '#756fb8',
    500: '#2d3999',
    950: '#000000',
  },
}
SCSS
$custom: #2d3999;
$custom-light: #756fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3999",
  "rgb": {
    "r": 45,
    "g": 57,
    "b": 153
  },
  "hsl": {
    "h": 233.333,
    "s": 54.545,
    "l": 38.824
  },
  "oklch": {
    "l": 0.39798,
    "c": 0.15578,
    "h": 271.8
  },
  "luminance": 0.05784
}

Semantic roles & 50–950 ramp

primary
#2D3999
secondary
#BBB267
accent
#CD4ADE
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2D3999

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

Preview Lab → · Contrast checker → · Palette generator →

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