#2C40AD#2C40AD

#2C40AD is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.9% C 0.175 H 269.4°. Best body text is #FFFFFF at 8.59:1 contrast (WCAG AA passes).

Color values

HEX#2C40AD
RGBrgb(44, 64, 173)
HSLhsl(231, 59%, 43%)
HSVhsv(231, 75%, 68%)
CMYKcmyk(74.6%, 63%, 0%, 32.2%)
CIE-LABlab(32.30, 31.06, -60.41)
CIE-LCHlch(32.30, 67.92, 297.21°)
OKLaboklab(42.85% -0.0019 -0.1746)
OKLCHoklch(42.85% 0.175 269.4)
XYZxyz(10.4123, 7.2183, 40.3716)
Luminance0.0722 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C40AD #AD992C
analogous
#2C80AD #2C40AD #592CAD
triadic
#2C40AD #AD2C40 #40AD2C
tetradic
#2C40AD #AD2C80 #AD992C #2CAD59
square
#2C40AD #AD2C80 #AD992C #2CAD59
split-complementary
#2C40AD #AD592C #80AD2C
monochromatic
#131C4B #202E7C #2C40AD #465CD0 #7787DC

Accessibility & contrast

On white

8.59
#2C40AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#2C40AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C40AD
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C40AD#FFFFFF#000000##FFFFFF
##2C40AD1.008.592.448.59
#FFFFFF8.591.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B1
Deuteranopia (green-blind)
#0046AB
Tritanopia (blue-blind)
#005C70
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2c40ad;
/* rgb */ color: rgb(44, 64, 173);
/* oklch */ color: oklch(42.9% 0.175 269.4);
Tailwind
colors: {
  custom: {
    50: '#7874c6',
    500: '#2c40ad',
    950: '#000000',
  },
}
SCSS
$custom: #2c40ad;
$custom-light: #7874c6;
$custom-dark: #000000;
JSON
{
  "hex": "#2c40ad",
  "rgb": {
    "r": 44,
    "g": 64,
    "b": 173
  },
  "hsl": {
    "h": 230.698,
    "s": 59.447,
    "l": 42.549
  },
  "oklch": {
    "l": 0.42854,
    "c": 0.17458,
    "h": 269.4
  },
  "luminance": 0.07219
}

Semantic roles & 50–950 ramp

primary
#2C40AD
secondary
#C4B771
accent
#CA45E3
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2C40AD

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

Preview Lab → · Contrast checker → · Palette generator →

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