#2C3998#2C3998

#2C3998 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.6% C 0.155 H 271.4°. Best body text is #FFFFFF at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#2C3998
RGBrgb(44, 57, 152)
HSLhsl(233, 55%, 38%)
HSVhsv(233, 71%, 60%)
CMYKcmyk(71.1%, 62.5%, 0%, 40.4%)
CIE-LABlab(28.72, 27.90, -53.59)
CIE-LCHlch(28.72, 60.42, 297.51°)
OKLaboklab(39.65% 0.0038 -0.1546)
OKLCHoklch(39.65% 0.155 271.4)
XYZxyz(8.1674, 5.7279, 30.3748)
Luminance0.0573 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C3998 #988B2C
analogous
#2C6F98 #2C3998 #552C98
triadic
#2C3998 #982C39 #39982C
tetradic
#2C3998 #982C6F #988B2C #2C9855
square
#2C3998 #982C6F #988B2C #2C9855
split-complementary
#2C3998 #98552C #6F982C
monochromatic
#111539 #1E2769 #2C3998 #3B4CC6 #6A77D4

Accessibility & contrast

On white

9.79
#2C3998 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#2C3998 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C3998
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C3998#FFFFFF#000000##FFFFFF
##2C39981.009.792.159.79
#FFFFFF9.791.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499B
Deuteranopia (green-blind)
#003F96
Tritanopia (blue-blind)
#005163
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2c3998;
/* rgb */ color: rgb(44, 57, 152);
/* oklch */ color: oklch(39.6% 0.155 271.4);
Tailwind
colors: {
  custom: {
    50: '#746fb7',
    500: '#2c3998',
    950: '#000000',
  },
}
SCSS
$custom: #2c3998;
$custom-light: #746fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#2c3998",
  "rgb": {
    "r": 44,
    "g": 57,
    "b": 152
  },
  "hsl": {
    "h": 232.778,
    "s": 55.102,
    "l": 38.431
  },
  "oklch": {
    "l": 0.3965,
    "c": 0.15468,
    "h": 271.4
  },
  "luminance": 0.05729
}

Semantic roles & 50–950 ramp

primary
#2C3998
secondary
#BBB065
accent
#CC49DE
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2C3998

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

Preview Lab → · Contrast checker → · Palette generator →

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