#2D3899#2D3899

#2D3899 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.6% C 0.157 H 272.1°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#2D3899
RGBrgb(45, 56, 153)
HSLhsl(234, 55%, 39%)
HSVhsv(234, 71%, 60%)
CMYKcmyk(70.6%, 63.4%, 0%, 40%)
CIE-LABlab(28.60, 29.07, -54.38)
CIE-LCHlch(28.60, 61.66, 298.13°)
OKLaboklab(39.61% 0.0056 -0.1569)
OKLCHoklch(39.61% 0.157 272.1)
XYZxyz(8.2442, 5.6853, 30.7937)
Luminance0.0569 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3899 #998E2D
analogous
#2D6E99 #2D3899 #582D99
triadic
#2D3899 #992D38 #38992D
tetradic
#2D3899 #992D6E #998E2D #2D9958
square
#2D3899 #992D6E #998E2D #2D9958
split-complementary
#2D3899 #99582D #6E992D
monochromatic
#11153A #1F276A #2D3899 #3D4BC6 #6C77D4

Accessibility & contrast

On white

9.83
#2D3899 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#2D3899 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D3899
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3899#FFFFFF#000000##FFFFFF
##2D38991.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d3899;
/* rgb */ color: rgb(45, 56, 153);
/* oklch */ color: oklch(39.6% 0.157 272.1);
Tailwind
colors: {
  custom: {
    50: '#756eb8',
    500: '#2d3899',
    950: '#000000',
  },
}
SCSS
$custom: #2d3899;
$custom-light: #756eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3899",
  "rgb": {
    "r": 45,
    "g": 56,
    "b": 153
  },
  "hsl": {
    "h": 233.889,
    "s": 54.545,
    "l": 38.824
  },
  "oklch": {
    "l": 0.3961,
    "c": 0.15703,
    "h": 272.1
  },
  "luminance": 0.05686
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D3899

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

Preview Lab → · Contrast checker → · Palette generator →

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