#2D3396#2D3396

#2D3396 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.4% C 0.159 H 273.5°. Best body text is #FFFFFF at 10.37:1 contrast (WCAG AA passes).

Color values

HEX#2D3396
RGBrgb(45, 51, 150)
HSLhsl(237, 54%, 38%)
HSVhsv(237, 70%, 59%)
CMYKcmyk(70%, 66%, 0%, 41.2%)
CIE-LABlab(27.09, 31.25, -55.01)
CIE-LCHlch(27.09, 63.27, 299.60°)
OKLaboklab(38.42% 0.0096 -0.1588)
OKLCHoklch(38.42% 0.159 273.5)
XYZxyz(7.7692, 5.1268, 29.4284)
Luminance0.0513 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3396 #96902D
analogous
#2D6796 #2D3396 #5B2D96
triadic
#2D3396 #962D33 #33962D
tetradic
#2D3396 #962D67 #96902D #2D965B
square
#2D3396 #962D67 #96902D #2D965B
split-complementary
#2D3396 #965B2D #67962D
monochromatic
#111338 #1F2367 #2D3396 #3C44C4 #6B71D3

Accessibility & contrast

On white

10.37
#2D3396 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#2D3396 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D3396
10.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3396#FFFFFF#000000##FFFFFF
##2D33961.0010.372.0310.37
#FFFFFF10.371.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004599
Deuteranopia (green-blind)
#003B94
Tritanopia (blue-blind)
#004D5F
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2d3396;
/* rgb */ color: rgb(45, 51, 150);
/* oklch */ color: oklch(38.4% 0.159 273.5);
Tailwind
colors: {
  custom: {
    50: '#756bb6',
    500: '#2d3396',
    950: '#000000',
  },
}
SCSS
$custom: #2d3396;
$custom-light: #756bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3396",
  "rgb": {
    "r": 45,
    "g": 51,
    "b": 150
  },
  "hsl": {
    "h": 236.571,
    "s": 53.846,
    "l": 38.235
  },
  "oklch": {
    "l": 0.3842,
    "c": 0.15912,
    "h": 273.5
  },
  "luminance": 0.05128
}

Semantic roles & 50–950 ramp

primary
#2D3396
secondary
#B9B565
accent
#D54BDD
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2D3396

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

Preview Lab → · Contrast checker → · Palette generator →

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