#2C4281#2C4281

#2C4281 is a dark, moderate blue. Relative luminance 0.060; OKLCH L 39.7% C 0.109 H 266.9°. Best body text is #FFFFFF at 9.53:1 contrast (WCAG AA passes).

Color values

HEX#2C4281
RGBrgb(44, 66, 129)
HSLhsl(224, 49%, 34%)
HSVhsv(224, 66%, 51%)
CMYKcmyk(65.9%, 48.8%, 0%, 49.4%)
CIE-LABlab(29.45, 13.14, -38.20)
CIE-LCHlch(29.45, 40.40, 288.98°)
OKLaboklab(39.65% -0.0059 -0.1093)
OKLCHoklch(39.65% 0.109 266.9)
XYZxyz(6.9480, 6.0163, 21.5597)
Luminance0.0602 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C4281 #816B2C
analogous
#2C6D81 #2C4281 #412C81
triadic
#2C4281 #812C42 #42812C
tetradic
#2C4281 #812C6D #816B2C #2C8141
square
#2C4281 #812C6D #816B2C #2C8141
split-complementary
#2C4281 #81412C #6D812C
monochromatic
#0D1326 #1C2B53 #2C4281 #3C59AF #5F7AC8

Accessibility & contrast

On white

9.53
#2C4281 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#2C4281 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C4281
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C4281#FFFFFF#000000##FFFFFF
##2C42811.009.532.209.53
#FFFFFF9.531.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#224983
Deuteranopia (green-blind)
#124280
Tritanopia (blue-blind)
#00505B
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2c4281;
/* rgb */ color: rgb(44, 66, 129);
/* oklch */ color: oklch(39.7% 0.109 266.9);
Tailwind
colors: {
  custom: {
    50: '#6f76a6',
    500: '#2c4281',
    950: '#000000',
  },
}
SCSS
$custom: #2c4281;
$custom-light: #6f76a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2c4281",
  "rgb": {
    "r": 44,
    "g": 66,
    "b": 129
  },
  "hsl": {
    "h": 224.471,
    "s": 49.133,
    "l": 33.922
  },
  "oklch": {
    "l": 0.39652,
    "c": 0.10943,
    "h": 266.9
  },
  "luminance": 0.06017
}

Semantic roles & 50–950 ramp

primary
#2C4281
secondary
#AF995A
accent
#B54FD9
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #2C4281

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

Preview Lab → · Contrast checker → · Palette generator →

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