#2D3799#2D3799

#2D3799 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.4% C 0.158 H 272.3°. Best body text is #FFFFFF at 9.92:1 contrast (WCAG AA passes).

Color values

HEX#2D3799
RGBrgb(45, 55, 153)
HSLhsl(234, 55%, 39%)
HSVhsv(234, 71%, 60%)
CMYKcmyk(70.6%, 64.1%, 0%, 40%)
CIE-LABlab(28.35, 29.73, -54.79)
CIE-LCHlch(28.35, 62.33, 298.48°)
OKLaboklab(39.42% 0.0064 -0.1582)
OKLCHoklch(39.42% 0.158 272.3)
XYZxyz(8.1962, 5.5894, 30.7777)
Luminance0.0559 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3799 #998F2D
analogous
#2D6D99 #2D3799 #592D99
triadic
#2D3799 #992D37 #37992D
tetradic
#2D3799 #992D6D #998F2D #2D9959
square
#2D3799 #992D6D #998F2D #2D9959
split-complementary
#2D3799 #99592D #6D992D
monochromatic
#11153A #1F266A #2D3799 #3D4AC6 #6C76D4

Accessibility & contrast

On white

9.92
#2D3799 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#2D3799 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D3799
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3799#FFFFFF#000000##FFFFFF
##2D37991.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489C
Deuteranopia (green-blind)
#003E97
Tritanopia (blue-blind)
#005062
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2d3799;
/* rgb */ color: rgb(45, 55, 153);
/* oklch */ color: oklch(39.4% 0.158 272.3);
Tailwind
colors: {
  custom: {
    50: '#756eb8',
    500: '#2d3799',
    950: '#000000',
  },
}
SCSS
$custom: #2d3799;
$custom-light: #756eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3799",
  "rgb": {
    "r": 45,
    "g": 55,
    "b": 153
  },
  "hsl": {
    "h": 234.444,
    "s": 54.545,
    "l": 38.824
  },
  "oklch": {
    "l": 0.39425,
    "c": 0.15828,
    "h": 272.3
  },
  "luminance": 0.0559
}

Semantic roles & 50–950 ramp

primary
#2D3799
secondary
#BBB367
accent
#D04ADE
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2D3799

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

Preview Lab → · Contrast checker → · Palette generator →

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