#2D3797#2D3797

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

Color values

HEX#2D3797
RGBrgb(45, 55, 151)
HSLhsl(234, 54%, 38%)
HSVhsv(234, 70%, 59%)
CMYKcmyk(70.2%, 63.6%, 0%, 40.8%)
CIE-LABlab(28.18, 29.00, -53.85)
CIE-LCHlch(28.18, 61.16, 298.30°)
OKLaboklab(39.24% 0.0065 -0.1554)
OKLCHoklch(39.24% 0.156 272.4)
XYZxyz(8.0324, 5.5239, 29.9151)
Luminance0.0553 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3797 #978D2D
analogous
#2D6C97 #2D3797 #582D97
triadic
#2D3797 #972D37 #37972D
tetradic
#2D3797 #972D6C #978D2D #2D9758
square
#2D3797 #972D6C #978D2D #2D9758
split-complementary
#2D3797 #97582D #6C972D
monochromatic
#111539 #1F2668 #2D3797 #3C49C5 #6B75D3

Accessibility & contrast

On white

9.98
#2D3797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D3797
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3797#FFFFFF#000000##FFFFFF
##2D37971.009.982.119.98
#FFFFFF9.981.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479A
Deuteranopia (green-blind)
#003E95
Tritanopia (blue-blind)
#004F61
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2d3797;
/* rgb */ color: rgb(45, 55, 151);
/* oklch */ color: oklch(39.2% 0.156 272.4);
Tailwind
colors: {
  custom: {
    50: '#746eb6',
    500: '#2d3797',
    950: '#000000',
  },
}
SCSS
$custom: #2d3797;
$custom-light: #746eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3797",
  "rgb": {
    "r": 45,
    "g": 55,
    "b": 151
  },
  "hsl": {
    "h": 234.34,
    "s": 54.082,
    "l": 38.431
  },
  "oklch": {
    "l": 0.39243,
    "c": 0.15553,
    "h": 272.4
  },
  "luminance": 0.05525
}

Semantic roles & 50–950 ramp

primary
#2D3797
secondary
#BAB266
accent
#D04ADD
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2D3797

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

Preview Lab → · Contrast checker → · Palette generator →

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