#2C3898#2C3898

#2C3898 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.5% C 0.156 H 271.7°. Best body text is #FFFFFF at 9.88:1 contrast (WCAG AA passes).

Color values

HEX#2C3898
RGBrgb(44, 56, 152)
HSLhsl(233, 55%, 38%)
HSVhsv(233, 71%, 60%)
CMYKcmyk(71.1%, 63.2%, 0%, 40.4%)
CIE-LABlab(28.46, 28.57, -54.00)
CIE-LCHlch(28.46, 61.09, 297.88°)
OKLaboklab(39.46% 0.0046 -0.1559)
OKLCHoklch(39.46% 0.156 271.7)
XYZxyz(8.1185, 5.6300, 30.3585)
Luminance0.0563 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C3898 #988C2C
analogous
#2C6E98 #2C3898 #562C98
triadic
#2C3898 #982C38 #38982C
tetradic
#2C3898 #982C6E #988C2C #2C9856
square
#2C3898 #982C6E #988C2C #2C9856
split-complementary
#2C3898 #98562C #6E982C
monochromatic
#111539 #1E2769 #2C3898 #3B4AC6 #6A76D4

Accessibility & contrast

On white

9.88
#2C3898 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#2C3898 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C3898
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C3898#FFFFFF#000000##FFFFFF
##2C38981.009.882.139.88
#FFFFFF9.881.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.881.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: #2c3898;
/* rgb */ color: rgb(44, 56, 152);
/* oklch */ color: oklch(39.5% 0.156 271.7);
Tailwind
colors: {
  custom: {
    50: '#746eb7',
    500: '#2c3898',
    950: '#000000',
  },
}
SCSS
$custom: #2c3898;
$custom-light: #746eb7;
$custom-dark: #000000;
JSON
{
  "hex": "#2c3898",
  "rgb": {
    "r": 44,
    "g": 56,
    "b": 152
  },
  "hsl": {
    "h": 233.333,
    "s": 55.102,
    "l": 38.431
  },
  "oklch": {
    "l": 0.39461,
    "c": 0.15593,
    "h": 271.7
  },
  "luminance": 0.05631
}

Semantic roles & 50–950 ramp

primary
#2C3898
secondary
#BBB165
accent
#CE49DE
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2C3898

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

Preview Lab → · Contrast checker → · Palette generator →

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