#2C40A1#2C40A1

#2C40A1 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.8% C 0.158 H 269.4°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#2C40A1
RGBrgb(44, 64, 161)
HSLhsl(230, 57%, 40%)
HSVhsv(230, 73%, 63%)
CMYKcmyk(72.7%, 60.2%, 0%, 36.9%)
CIE-LABlab(31.29, 26.60, -54.85)
CIE-LCHlch(31.29, 60.96, 295.87°)
OKLaboklab(41.79% -0.0017 -0.1583)
OKLCHoklch(41.79% 0.158 269.4)
XYZxyz(9.3029, 6.7745, 34.5286)
Luminance0.0678 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C40A1 #A18D2C
analogous
#2C7AA1 #2C40A1 #532CA1
triadic
#2C40A1 #A12C40 #40A12C
tetradic
#2C40A1 #A12C7A #A18D2C #2CA153
square
#2C40A1 #A12C7A #A18D2C #2CA153
split-complementary
#2C40A1 #A1532C #7AA12C
monochromatic
#121A41 #1F2D71 #2C40A1 #4057CB #7081D8

Accessibility & contrast

On white

8.92
#2C40A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#2C40A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C40A1
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C40A1#FFFFFF#000000##FFFFFF
##2C40A11.008.922.368.92
#FFFFFF8.921.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA4
Deuteranopia (green-blind)
#00449F
Tritanopia (blue-blind)
#00586A
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2c40a1;
/* rgb */ color: rgb(44, 64, 161);
/* oklch */ color: oklch(41.8% 0.158 269.4);
Tailwind
colors: {
  custom: {
    50: '#7674be',
    500: '#2c40a1',
    950: '#000000',
  },
}
SCSS
$custom: #2c40a1;
$custom-light: #7674be;
$custom-dark: #000000;
JSON
{
  "hex": "#2c40a1",
  "rgb": {
    "r": 44,
    "g": 64,
    "b": 161
  },
  "hsl": {
    "h": 229.744,
    "s": 57.073,
    "l": 40.196
  },
  "oklch": {
    "l": 0.41791,
    "c": 0.15828,
    "h": 269.4
  },
  "luminance": 0.06775
}

Semantic roles & 50–950 ramp

primary
#2C40A1
secondary
#BFB06A
accent
#C647E0
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2C40A1

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

Preview Lab → · Contrast checker → · Palette generator →

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