#2D3399#2D3399

#2D3399 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.7% C 0.163 H 273.3°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#2D3399
RGBrgb(45, 51, 153)
HSLhsl(237, 55%, 39%)
HSVhsv(237, 71%, 60%)
CMYKcmyk(70.6%, 66.7%, 0%, 40%)
CIE-LABlab(27.37, 32.33, -56.40)
CIE-LCHlch(27.37, 65.01, 299.82°)
OKLaboklab(38.7% 0.0094 -0.1629)
OKLCHoklch(38.7% 0.163 273.3)
XYZxyz(8.0139, 5.2247, 30.7169)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3399 #99932D
analogous
#2D6999 #2D3399 #5D2D99
triadic
#2D3399 #992D33 #33992D
tetradic
#2D3399 #992D69 #99932D #2D995D
square
#2D3399 #992D69 #99932D #2D995D
split-complementary
#2D3399 #995D2D #69992D
monochromatic
#11133A #1F236A #2D3399 #3D45C6 #6C72D4

Accessibility & contrast

On white

10.27
#2D3399 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#2D3399 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D3399
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3399#FFFFFF#000000##FFFFFF
##2D33991.0010.272.0510.27
#FFFFFF10.271.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469C
Deuteranopia (green-blind)
#003C97
Tritanopia (blue-blind)
#004E61
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2d3399;
/* rgb */ color: rgb(45, 51, 153);
/* oklch */ color: oklch(38.7% 0.163 273.3);
Tailwind
colors: {
  custom: {
    50: '#756bb8',
    500: '#2d3399',
    950: '#000000',
  },
}
SCSS
$custom: #2d3399;
$custom-light: #756bb8;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3399",
  "rgb": {
    "r": 45,
    "g": 51,
    "b": 153
  },
  "hsl": {
    "h": 236.667,
    "s": 54.545,
    "l": 38.824
  },
  "oklch": {
    "l": 0.38703,
    "c": 0.16317,
    "h": 273.3
  },
  "luminance": 0.05225
}

Semantic roles & 50–950 ramp

primary
#2D3399
secondary
#BBB667
accent
#D64ADE
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #2D3399

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

Preview Lab → · Contrast checker → · Palette generator →

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