#2C3791#2C3791

#2C3791 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.6% C 0.147 H 272.2°. Best body text is #FFFFFF at 10.18:1 contrast (WCAG AA passes).

Color values

HEX#2C3791
RGBrgb(44, 55, 145)
HSLhsl(233, 53%, 37%)
HSVhsv(233, 70%, 57%)
CMYKcmyk(69.7%, 62.1%, 0%, 43.1%)
CIE-LABlab(27.60, 26.64, -51.11)
CIE-LCHlch(27.60, 57.63, 297.53°)
OKLaboklab(38.64% 0.0056 -0.1474)
OKLCHoklch(38.64% 0.147 272.2)
XYZxyz(7.5140, 5.3115, 27.4118)
Luminance0.0531 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C3791 #91862C
analogous
#2C6A91 #2C3791 #532C91
triadic
#2C3791 #912C37 #37912C
tetradic
#2C3791 #912C6A #91862C #2C9153
square
#2C3791 #912C6A #91862C #2C9153
split-complementary
#2C3791 #91532C #6A912C
monochromatic
#101333 #1E2562 #2C3791 #3A49C0 #6772D1

Accessibility & contrast

On white

10.18
#2C3791 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#2C3791 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C3791
10.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C3791#FFFFFF#000000##FFFFFF
##2C37911.0010.182.0610.18
#FFFFFF10.181.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004694
Deuteranopia (green-blind)
#003D8F
Tritanopia (blue-blind)
#004E5E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2c3791;
/* rgb */ color: rgb(44, 55, 145);
/* oklch */ color: oklch(38.6% 0.147 272.2);
Tailwind
colors: {
  custom: {
    50: '#736db2',
    500: '#2c3791',
    950: '#000000',
  },
}
SCSS
$custom: #2c3791;
$custom-light: #736db2;
$custom-dark: #000000;
JSON
{
  "hex": "#2c3791",
  "rgb": {
    "r": 44,
    "g": 55,
    "b": 145
  },
  "hsl": {
    "h": 233.465,
    "s": 53.439,
    "l": 37.059
  },
  "oklch": {
    "l": 0.38644,
    "c": 0.14748,
    "h": 272.2
  },
  "luminance": 0.05312
}

Semantic roles & 50–950 ramp

primary
#2C3791
secondary
#B7AE62
accent
#CD4BDD
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2C3791

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

Preview Lab → · Contrast checker → · Palette generator →

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