#2C407F#2C407F

#2C407F is a dark, moderate blue. Relative luminance 0.057; OKLCH L 39.1% C 0.109 H 267.9°. Best body text is #FFFFFF at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#2C407F
RGBrgb(44, 64, 127)
HSLhsl(226, 49%, 34%)
HSVhsv(226, 65%, 50%)
CMYKcmyk(65.4%, 49.6%, 0%, 50.2%)
CIE-LABlab(28.73, 13.75, -38.11)
CIE-LCHlch(28.73, 40.52, 289.84°)
OKLaboklab(39.06% -0.0041 -0.109)
OKLCHoklch(39.06% 0.109 267.9)
XYZxyz(6.7016, 5.7340, 20.8282)
Luminance0.0573 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C407F #7F6B2C
analogous
#2C697F #2C407F #412C7F
triadic
#2C407F #7F2C40 #407F2C
tetradic
#2C407F #7F2C69 #7F6B2C #2C7F41
square
#2C407F #7F2C69 #7F6B2C #2C7F41
split-complementary
#2C407F #7F412C #697F2C
monochromatic
#0D1224 #1C2952 #2C407F #3C57AC #5E77C7

Accessibility & contrast

On white

9.78
#2C407F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#2C407F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C407F
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C407F#FFFFFF#000000##FFFFFF
##2C407F1.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204881
Deuteranopia (green-blind)
#10407E
Tritanopia (blue-blind)
#004E59
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2c407f;
/* rgb */ color: rgb(44, 64, 127);
/* oklch */ color: oklch(39.1% 0.109 267.9);
Tailwind
colors: {
  custom: {
    50: '#6e74a4',
    500: '#2c407f',
    950: '#000000',
  },
}
SCSS
$custom: #2c407f;
$custom-light: #6e74a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2c407f",
  "rgb": {
    "r": 44,
    "g": 64,
    "b": 127
  },
  "hsl": {
    "h": 225.542,
    "s": 48.538,
    "l": 33.529
  },
  "oklch": {
    "l": 0.39057,
    "c": 0.10912,
    "h": 267.9
  },
  "luminance": 0.05735
}

Semantic roles & 50–950 ramp

primary
#2C407F
secondary
#AD9959
accent
#B750D8
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #2C407F

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

Preview Lab → · Contrast checker → · Palette generator →

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