#2C40AF#2C40AF

#2C40AF is a dark, vivid blue. Relative luminance 0.073; OKLCH L 43.0% C 0.177 H 269.4°. Best body text is #FFFFFF at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#2C40AF
RGBrgb(44, 64, 175)
HSLhsl(231, 60%, 43%)
HSVhsv(231, 75%, 69%)
CMYKcmyk(74.9%, 63.4%, 0%, 31.4%)
CIE-LABlab(32.47, 31.80, -61.32)
CIE-LCHlch(32.47, 69.07, 297.41°)
OKLaboklab(43.04% -0.0019 -0.1772)
OKLCHoklch(43.04% 0.177 269.4)
XYZxyz(10.6073, 7.2963, 41.3984)
Luminance0.0730 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C40AF #AF9B2C
analogous
#2C81AF #2C40AF #5A2CAF
triadic
#2C40AF #AF2C40 #40AF2C
tetradic
#2C40AF #AF2C81 #AF9B2C #2CAF5A
square
#2C40AF #AF2C81 #AF9B2C #2CAF5A
split-complementary
#2C40AF #AF5A2C #81AF2C
monochromatic
#131C4D #202E7E #2C40AF #475CD1 #7888DD

Accessibility & contrast

On white

8.54
#2C40AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#2C40AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C40AF
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C40AF#FFFFFF#000000##FFFFFF
##2C40AF1.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B3
Deuteranopia (green-blind)
#0046AD
Tritanopia (blue-blind)
#005D71
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2c40af;
/* rgb */ color: rgb(44, 64, 175);
/* oklch */ color: oklch(43.0% 0.177 269.4);
Tailwind
colors: {
  custom: {
    50: '#7974c8',
    500: '#2c40af',
    950: '#000000',
  },
}
SCSS
$custom: #2c40af;
$custom-light: #7974c8;
$custom-dark: #000000;
JSON
{
  "hex": "#2c40af",
  "rgb": {
    "r": 44,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 230.84,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.43035,
    "c": 0.17724,
    "h": 269.4
  },
  "luminance": 0.07297
}

Semantic roles & 50–950 ramp

primary
#2C40AF
secondary
#C5B872
accent
#CB45E3
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2C40AF

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

Preview Lab → · Contrast checker → · Palette generator →

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