#2D3798#2D3798

#2D3798 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.3% C 0.157 H 272.4°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#2D3798
RGBrgb(45, 55, 152)
HSLhsl(234, 54%, 39%)
HSVhsv(234, 70%, 60%)
CMYKcmyk(70.4%, 63.8%, 0%, 40.4%)
CIE-LABlab(28.26, 29.36, -54.32)
CIE-LCHlch(28.26, 61.75, 298.39°)
OKLaboklab(39.33% 0.0065 -0.1568)
OKLCHoklch(39.33% 0.157 272.4)
XYZxyz(8.1140, 5.5565, 30.3446)
Luminance0.0556 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3798 #988E2D
analogous
#2D6C98 #2D3798 #582D98
triadic
#2D3798 #982D37 #37982D
tetradic
#2D3798 #982D6C #988E2D #2D9858
square
#2D3798 #982D6C #988E2D #2D9858
split-complementary
#2D3798 #98582D #6C982D
monochromatic
#11153A #1F2669 #2D3798 #3D49C5 #6C76D3

Accessibility & contrast

On white

9.95
#2D3798 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#2D3798 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D3798
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3798#FFFFFF#000000##FFFFFF
##2D37981.009.952.119.95
#FFFFFF9.951.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.951.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d3798;
/* rgb */ color: rgb(45, 55, 152);
/* oklch */ color: oklch(39.3% 0.157 272.4);
Tailwind
colors: {
  custom: {
    50: '#756eb7',
    500: '#2d3798',
    950: '#000000',
  },
}
SCSS
$custom: #2d3798;
$custom-light: #756eb7;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3798",
  "rgb": {
    "r": 45,
    "g": 55,
    "b": 152
  },
  "hsl": {
    "h": 234.393,
    "s": 54.315,
    "l": 38.627
  },
  "oklch": {
    "l": 0.39334,
    "c": 0.1569,
    "h": 272.4
  },
  "luminance": 0.05557
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D3798

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

Preview Lab → · Contrast checker → · Palette generator →

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