#2C4081#2C4081

#2C4081 is a dark, moderate blue. Relative luminance 0.058; OKLCH L 39.2% C 0.112 H 268.1°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#2C4081
RGBrgb(44, 64, 129)
HSLhsl(226, 49%, 34%)
HSVhsv(226, 66%, 51%)
CMYKcmyk(65.9%, 50.4%, 0%, 49.4%)
CIE-LABlab(28.87, 14.51, -39.14)
CIE-LCHlch(28.87, 41.75, 290.34°)
OKLaboklab(39.21% -0.0038 -0.1121)
OKLCHoklch(39.21% 0.112 268.1)
XYZxyz(6.8332, 5.7866, 21.5215)
Luminance0.0579 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C4081 #816D2C
analogous
#2C6B81 #2C4081 #432C81
triadic
#2C4081 #812C40 #40812C
tetradic
#2C4081 #812C6B #816D2C #2C8143
square
#2C4081 #812C6B #816D2C #2C8143
split-complementary
#2C4081 #81432C #6B812C
monochromatic
#0D1326 #1C2953 #2C4081 #3C57AF #5F78C8

Accessibility & contrast

On white

9.73
#2C4081 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#2C4081 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C4081
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C4081#FFFFFF#000000##FFFFFF
##2C40811.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4883
Deuteranopia (green-blind)
#0B4080
Tritanopia (blue-blind)
#004F5A
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2c4081;
/* rgb */ color: rgb(44, 64, 129);
/* oklch */ color: oklch(39.2% 0.112 268.1);
Tailwind
colors: {
  custom: {
    50: '#6f74a6',
    500: '#2c4081',
    950: '#000000',
  },
}
SCSS
$custom: #2c4081;
$custom-light: #6f74a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2c4081",
  "rgb": {
    "r": 44,
    "g": 64,
    "b": 129
  },
  "hsl": {
    "h": 225.882,
    "s": 49.133,
    "l": 33.922
  },
  "oklch": {
    "l": 0.39205,
    "c": 0.11213,
    "h": 268.1
  },
  "luminance": 0.05787
}

Semantic roles & 50–950 ramp

primary
#2C4081
secondary
#AF9B5A
accent
#B84FD9
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #2C4081

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

Preview Lab → · Contrast checker → · Palette generator →

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