#2C3799#2C3799

#2C3799 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.4% C 0.159 H 271.9°. Best body text is #FFFFFF at 9.94:1 contrast (WCAG AA passes).

Color values

HEX#2C3799
RGBrgb(44, 55, 153)
HSLhsl(234, 55%, 39%)
HSVhsv(234, 71%, 60%)
CMYKcmyk(71.2%, 64.1%, 0%, 40%)
CIE-LABlab(28.29, 29.59, -54.89)
CIE-LCHlch(28.29, 62.36, 298.33°)
OKLaboklab(39.37% 0.0053 -0.1585)
OKLCHoklch(39.37% 0.159 271.9)
XYZxyz(8.1527, 5.5670, 30.7757)
Luminance0.0557 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C3799 #998E2C
analogous
#2C6D99 #2C3799 #572C99
triadic
#2C3799 #992C37 #37992C
tetradic
#2C3799 #992C6D #998E2C #2C9957
square
#2C3799 #992C6D #998E2C #2C9957
split-complementary
#2C3799 #99572C #6D992C
monochromatic
#11153A #1E2669 #2C3799 #3B49C7 #6B76D4

Accessibility & contrast

On white

9.94
#2C3799 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C3799
9.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C3799#FFFFFF#000000##FFFFFF
##2C37991.009.942.119.94
#FFFFFF9.941.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c3799;
/* rgb */ color: rgb(44, 55, 153);
/* oklch */ color: oklch(39.4% 0.159 271.9);
Tailwind
colors: {
  custom: {
    50: '#756eb8',
    500: '#2c3799',
    950: '#000000',
  },
}
SCSS
$custom: #2c3799;
$custom-light: #756eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#2c3799",
  "rgb": {
    "r": 44,
    "g": 55,
    "b": 153
  },
  "hsl": {
    "h": 233.945,
    "s": 55.33,
    "l": 38.627
  },
  "oklch": {
    "l": 0.39365,
    "c": 0.15855,
    "h": 271.9
  },
  "luminance": 0.05568
}

Semantic roles & 50–950 ramp

primary
#2C3799
secondary
#BBB366
accent
#D049DF
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2C3799

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

Preview Lab → · Contrast checker → · Palette generator →

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