#2C4086#2C4086

#2C4086 is a dark, moderate blue. Relative luminance 0.059; OKLCH L 39.6% C 0.120 H 268.5°. Best body text is #FFFFFF at 9.61:1 contrast (WCAG AA passes).

Color values

HEX#2C4086
RGBrgb(44, 64, 134)
HSLhsl(227, 51%, 35%)
HSVhsv(227, 67%, 53%)
CMYKcmyk(67.2%, 52.2%, 0%, 47.5%)
CIE-LABlab(29.22, 16.40, -41.69)
CIE-LCHlch(29.22, 44.80, 291.48°)
OKLaboklab(39.58% -0.0032 -0.1196)
OKLCHoklch(39.58% 0.12 268.5)
XYZxyz(7.1737, 5.9228, 23.3148)
Luminance0.0592 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C4086 #86722C
analogous
#2C6D86 #2C4086 #452C86
triadic
#2C4086 #862C40 #40862C
tetradic
#2C4086 #862C6D #86722C #2C8645
square
#2C4086 #862C6D #86722C #2C8645
split-complementary
#2C4086 #86452C #6D862C
monochromatic
#0E142A #1D2A58 #2C4086 #3B56B4 #6179CB

Accessibility & contrast

On white

9.61
#2C4086 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#2C4086 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C4086
9.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C4086#FFFFFF#000000##FFFFFF
##2C40861.009.612.189.61
#FFFFFF9.611.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#184989
Deuteranopia (green-blind)
#004185
Tritanopia (blue-blind)
#00505C
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2c4086;
/* rgb */ color: rgb(44, 64, 134);
/* oklch */ color: oklch(39.6% 0.120 268.5);
Tailwind
colors: {
  custom: {
    50: '#7074aa',
    500: '#2c4086',
    950: '#000000',
  },
}
SCSS
$custom: #2c4086;
$custom-light: #7074aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2c4086",
  "rgb": {
    "r": 44,
    "g": 64,
    "b": 134
  },
  "hsl": {
    "h": 226.667,
    "s": 50.562,
    "l": 34.902
  },
  "oklch": {
    "l": 0.39582,
    "c": 0.1196,
    "h": 268.5
  },
  "luminance": 0.05923
}

Semantic roles & 50–950 ramp

primary
#2C4086
secondary
#B19F5C
accent
#BB4EDA
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2C4086

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

Preview Lab → · Contrast checker → · Palette generator →

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