#2C407D#2C407D

#2C407D is a dark, moderate blue. Relative luminance 0.057; OKLCH L 38.9% C 0.106 H 267.6°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#2C407D
RGBrgb(44, 64, 125)
HSLhsl(225, 48%, 33%)
HSVhsv(225, 65%, 49%)
CMYKcmyk(64.8%, 48.8%, 0%, 51%)
CIE-LABlab(28.60, 13.00, -37.08)
CIE-LCHlch(28.60, 39.29, 289.32°)
OKLaboklab(38.91% -0.0044 -0.106)
OKLCHoklch(38.91% 0.106 267.6)
XYZxyz(6.5725, 5.6824, 20.1485)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C407D #7D692C
analogous
#2C687D #2C407D #402C7D
triadic
#2C407D #7D2C40 #407D2C
tetradic
#2C407D #7D2C68 #7D692C #2C7D40
square
#2C407D #7D2C68 #7D692C #2C7D40
split-complementary
#2C407D #7D402C #687D2C
monochromatic
#0C1222 #1C2950 #2C407D #3C57AA #5D77C6

Accessibility & contrast

On white

9.83
#2C407D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#2C407D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C407D
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C407D#FFFFFF#000000##FFFFFF
##2C407D1.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22477F
Deuteranopia (green-blind)
#13407C
Tritanopia (blue-blind)
#004E58
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2c407d;
/* rgb */ color: rgb(44, 64, 125);
/* oklch */ color: oklch(38.9% 0.106 267.6);
Tailwind
colors: {
  custom: {
    50: '#6e74a3',
    500: '#2c407d',
    950: '#000000',
  },
}
SCSS
$custom: #2c407d;
$custom-light: #6e74a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2c407d",
  "rgb": {
    "r": 44,
    "g": 64,
    "b": 125
  },
  "hsl": {
    "h": 225.185,
    "s": 47.929,
    "l": 33.137
  },
  "oklch": {
    "l": 0.38911,
    "c": 0.10609,
    "h": 267.6
  },
  "luminance": 0.05683
}

Semantic roles & 50–950 ramp

primary
#2C407D
secondary
#AC9859
accent
#B650D8
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #2C407D

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

Preview Lab → · Contrast checker → · Palette generator →

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