#2C4189#2C4189

#2C4189 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.0% C 0.123 H 268.2°. Best body text is #FFFFFF at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#2C4189
RGBrgb(44, 65, 137)
HSLhsl(226, 51%, 35%)
HSVhsv(226, 68%, 54%)
CMYKcmyk(67.9%, 52.6%, 0%, 46.3%)
CIE-LABlab(29.72, 16.86, -42.74)
CIE-LCHlch(29.72, 45.95, 291.52°)
OKLaboklab(40.03% -0.0039 -0.1226)
OKLCHoklch(40.03% 0.123 268.2)
XYZxyz(7.4428, 6.1215, 24.4514)
Luminance0.0612 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C4189 #89742C
analogous
#2C6F89 #2C4189 #462C89
triadic
#2C4189 #892C41 #41892C
tetradic
#2C4189 #892C6F #89742C #2C8946
square
#2C4189 #892C6F #89742C #2C8946
split-complementary
#2C4189 #89462C #6F892C
monochromatic
#0E152C #1D2B5B #2C4189 #3B57B7 #637BCD

Accessibility & contrast

On white

9.44
#2C4189 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#2C4189 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C4189
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C4189#FFFFFF#000000##FFFFFF
##2C41891.009.442.229.44
#FFFFFF9.441.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#164A8C
Deuteranopia (green-blind)
#004288
Tritanopia (blue-blind)
#00525E
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2c4189;
/* rgb */ color: rgb(44, 65, 137);
/* oklch */ color: oklch(40.0% 0.123 268.2);
Tailwind
colors: {
  custom: {
    50: '#7075ac',
    500: '#2c4189',
    950: '#000000',
  },
}
SCSS
$custom: #2c4189;
$custom-light: #7075ac;
$custom-dark: #000000;
JSON
{
  "hex": "#2c4189",
  "rgb": {
    "r": 44,
    "g": 65,
    "b": 137
  },
  "hsl": {
    "h": 226.452,
    "s": 51.381,
    "l": 35.49
  },
  "oklch": {
    "l": 0.4003,
    "c": 0.1227,
    "h": 268.2
  },
  "luminance": 0.06122
}

Semantic roles & 50–950 ramp

primary
#2C4189
secondary
#B3A05E
accent
#BB4DDB
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2C4189

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

Preview Lab → · Contrast checker → · Palette generator →

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