#2C407B#2C407B

#2C407B is a dark, moderate blue. Relative luminance 0.056; OKLCH L 38.8% C 0.103 H 267.4°. Best body text is #FFFFFF at 9.88:1 contrast (WCAG AA passes).

Color values

HEX#2C407B
RGBrgb(44, 64, 123)
HSLhsl(225, 47%, 33%)
HSVhsv(225, 64%, 48%)
CMYKcmyk(64.2%, 48%, 0%, 51.8%)
CIE-LABlab(28.46, 12.25, -36.04)
CIE-LCHlch(28.46, 38.06, 288.77°)
OKLaboklab(38.77% -0.0047 -0.1029)
OKLCHoklch(38.77% 0.103 267.4)
XYZxyz(6.4460, 5.6318, 19.4824)
Luminance0.0563 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C407B #7B672C
analogous
#2C677B #2C407B #3F2C7B
triadic
#2C407B #7B2C40 #407B2C
tetradic
#2C407B #7B2C67 #7B672C #2C7B3F
square
#2C407B #7B2C67 #7B672C #2C7B3F
split-complementary
#2C407B #7B3F2C #677B2C
monochromatic
#0C1121 #1C294E #2C407B #3C57A8 #5D77C5

Accessibility & contrast

On white

9.88
#2C407B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#2C407B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C407B
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C407B#FFFFFF#000000##FFFFFF
##2C407B1.009.882.139.88
#FFFFFF9.881.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24477D
Deuteranopia (green-blind)
#16407A
Tritanopia (blue-blind)
#004D57
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2c407b;
/* rgb */ color: rgb(44, 64, 123);
/* oklch */ color: oklch(38.8% 0.103 267.4);
Tailwind
colors: {
  custom: {
    50: '#6d74a1',
    500: '#2c407b',
    950: '#000000',
  },
}
SCSS
$custom: #2c407b;
$custom-light: #6d74a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2c407b",
  "rgb": {
    "r": 44,
    "g": 64,
    "b": 123
  },
  "hsl": {
    "h": 224.81,
    "s": 47.305,
    "l": 32.745
  },
  "oklch": {
    "l": 0.38767,
    "c": 0.10305,
    "h": 267.4
  },
  "luminance": 0.05632
}

Semantic roles & 50–950 ramp

primary
#2C407B
secondary
#AB9658
accent
#B551D7
background
#F6F7FA
surface
#ECEDF3
border
#C7C8CD
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #2C407B

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

Preview Lab → · Contrast checker → · Palette generator →

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