#2C4C8E#2C4C8E

#2C4C8E is a dark, moderate blue. Relative luminance 0.077; OKLCH L 42.8% C 0.116 H 263.0°. Best body text is #FFFFFF at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#2C4C8E
RGBrgb(44, 76, 142)
HSLhsl(220, 53%, 36%)
HSVhsv(220, 69%, 56%)
CMYKcmyk(69%, 46.5%, 0%, 44.3%)
CIE-LABlab(33.26, 11.32, -40.13)
CIE-LCHlch(33.26, 41.69, 285.75°)
OKLaboklab(42.84% -0.0141 -0.1148)
OKLCHoklch(42.84% 0.116 263)
XYZxyz(8.5039, 7.6565, 26.6156)
Luminance0.0766 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C4C8E #8E6E2C
analogous
#2C7D8E #2C4C8E #3D2C8E
triadic
#2C4C8E #8E2C4C #4C8E2C
tetradic
#2C4C8E #8E2C7D #8E6E2C #2C8E3D
square
#2C4C8E #8E2C7D #8E6E2C #2C8E3D
split-complementary
#2C4C8E #8E3D2C #7D8E2C
monochromatic
#0F1A31 #1E335F #2C4C8E #3A65BD #6588CF

Accessibility & contrast

On white

8.30
#2C4C8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#2C4C8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C4C8E
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C4C8E#FFFFFF#000000##FFFFFF
##2C4C8E1.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B5390
Deuteranopia (green-blind)
#194A8D
Tritanopia (blue-blind)
#005B66
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2c4c8e;
/* rgb */ color: rgb(44, 76, 142);
/* oklch */ color: oklch(42.8% 0.116 263.0);
Tailwind
colors: {
  custom: {
    50: '#717daf',
    500: '#2c4c8e',
    950: '#000000',
  },
}
SCSS
$custom: #2c4c8e;
$custom-light: #717daf;
$custom-dark: #000000;
JSON
{
  "hex": "#2c4c8e",
  "rgb": {
    "r": 44,
    "g": 76,
    "b": 142
  },
  "hsl": {
    "h": 220.408,
    "s": 52.688,
    "l": 36.471
  },
  "oklch": {
    "l": 0.42841,
    "c": 0.11564,
    "h": 263
  },
  "luminance": 0.07657
}

Semantic roles & 50–950 ramp

primary
#2C4C8E
secondary
#B69A60
accent
#AD4CDC
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #2C4C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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