#2D3796#2D3796

#2D3796 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.2% C 0.154 H 272.4°. Best body text is #FFFFFF at 10.01:1 contrast (WCAG AA passes).

Color values

HEX#2D3796
RGBrgb(45, 55, 150)
HSLhsl(234, 54%, 38%)
HSVhsv(234, 70%, 59%)
CMYKcmyk(70%, 63.3%, 0%, 41.2%)
CIE-LABlab(28.09, 28.63, -53.38)
CIE-LCHlch(28.09, 60.57, 298.21°)
OKLaboklab(39.15% 0.0065 -0.154)
OKLCHoklch(39.15% 0.154 272.4)
XYZxyz(7.9515, 5.4915, 29.4892)
Luminance0.0549 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3796 #968C2D
analogous
#2D6B96 #2D3796 #572D96
triadic
#2D3796 #962D37 #37962D
tetradic
#2D3796 #962D6B #968C2D #2D9657
square
#2D3796 #962D6B #968C2D #2D9657
split-complementary
#2D3796 #96572D #6B962D
monochromatic
#111438 #1F2667 #2D3796 #3C49C4 #6B75D3

Accessibility & contrast

On white

10.01
#2D3796 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#2D3796 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D3796
10.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3796#FFFFFF#000000##FFFFFF
##2D37961.0010.012.1010.01
#FFFFFF10.011.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004799
Deuteranopia (green-blind)
#003E94
Tritanopia (blue-blind)
#004F61
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2d3796;
/* rgb */ color: rgb(45, 55, 150);
/* oklch */ color: oklch(39.2% 0.154 272.4);
Tailwind
colors: {
  custom: {
    50: '#746eb6',
    500: '#2d3796',
    950: '#000000',
  },
}
SCSS
$custom: #2d3796;
$custom-light: #746eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3796",
  "rgb": {
    "r": 45,
    "g": 55,
    "b": 150
  },
  "hsl": {
    "h": 234.286,
    "s": 53.846,
    "l": 38.235
  },
  "oklch": {
    "l": 0.39152,
    "c": 0.15415,
    "h": 272.4
  },
  "luminance": 0.05492
}

Semantic roles & 50–950 ramp

primary
#2D3796
secondary
#B9B165
accent
#CF4BDD
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2D3796

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

Preview Lab → · Contrast checker → · Palette generator →

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