#2C40AB#2C40AB

#2C40AB is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.7% C 0.172 H 269.4°. Best body text is #FFFFFF at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#2C40AB
RGBrgb(44, 64, 171)
HSLhsl(231, 59%, 42%)
HSVhsv(231, 74%, 67%)
CMYKcmyk(74.3%, 62.6%, 0%, 32.9%)
CIE-LABlab(32.13, 30.32, -59.49)
CIE-LCHlch(32.13, 66.77, 297.00°)
OKLaboklab(42.67% -0.0018 -0.1719)
OKLCHoklch(42.67% 0.172 269.4)
XYZxyz(10.2203, 7.1415, 39.3600)
Luminance0.0714 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C40AB #AB972C
analogous
#2C80AB #2C40AB #572CAB
triadic
#2C40AB #AB2C40 #40AB2C
tetradic
#2C40AB #AB2C80 #AB972C #2CAB57
square
#2C40AB #AB2C80 #AB972C #2CAB57
split-complementary
#2C40AB #AB572C #80AB2C
monochromatic
#131C4A #1F2E7A #2C40AB #455BCF #7686DC

Accessibility & contrast

On white

8.65
#2C40AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#2C40AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C40AB
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C40AB#FFFFFF#000000##FFFFFF
##2C40AB1.008.652.438.65
#FFFFFF8.651.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AE
Deuteranopia (green-blind)
#0046A9
Tritanopia (blue-blind)
#005C6F
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2c40ab;
/* rgb */ color: rgb(44, 64, 171);
/* oklch */ color: oklch(42.7% 0.172 269.4);
Tailwind
colors: {
  custom: {
    50: '#7874c5',
    500: '#2c40ab',
    950: '#000000',
  },
}
SCSS
$custom: #2c40ab;
$custom-light: #7874c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2c40ab",
  "rgb": {
    "r": 44,
    "g": 64,
    "b": 171
  },
  "hsl": {
    "h": 230.551,
    "s": 59.07,
    "l": 42.157
  },
  "oklch": {
    "l": 0.42674,
    "c": 0.1719,
    "h": 269.4
  },
  "luminance": 0.07143
}

Semantic roles & 50–950 ramp

primary
#2C40AB
secondary
#C3B66F
accent
#CA46E2
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2C40AB

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

Preview Lab → · Contrast checker → · Palette generator →

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