#2C40A9#2C40A9

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

Color values

HEX#2C40A9
RGBrgb(44, 64, 169)
HSLhsl(230, 59%, 42%)
HSVhsv(230, 74%, 66%)
CMYKcmyk(74%, 62.1%, 0%, 33.7%)
CIE-LABlab(31.96, 29.58, -58.58)
CIE-LCHlch(31.96, 65.62, 296.79°)
OKLaboklab(42.5% -0.0018 -0.1692)
OKLCHoklch(42.5% 0.169 269.4)
XYZxyz(10.0311, 7.0658, 38.3636)
Luminance0.0707 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C40A9 #A9952C
analogous
#2C7FA9 #2C40A9 #572CA9
triadic
#2C40A9 #A92C40 #40A92C
tetradic
#2C40A9 #A92C7F #A9952C #2CA957
square
#2C40A9 #A92C7F #A9952C #2CA957
split-complementary
#2C40A9 #A9572C #7FA92C
monochromatic
#131B48 #1F2E78 #2C40A9 #445ACE #7485DB

Accessibility & contrast

On white

8.70
#2C40A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#2C40A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C40A9
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C40A9#FFFFFF#000000##FFFFFF
##2C40A91.008.702.418.70
#FFFFFF8.701.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AC
Deuteranopia (green-blind)
#0045A7
Tritanopia (blue-blind)
#005B6E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2c40a9;
/* rgb */ color: rgb(44, 64, 169);
/* oklch */ color: oklch(42.5% 0.169 269.4);
Tailwind
colors: {
  custom: {
    50: '#7874c3',
    500: '#2c40a9',
    950: '#000000',
  },
}
SCSS
$custom: #2c40a9;
$custom-light: #7874c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2c40a9",
  "rgb": {
    "r": 44,
    "g": 64,
    "b": 169
  },
  "hsl": {
    "h": 230.4,
    "s": 58.685,
    "l": 41.765
  },
  "oklch": {
    "l": 0.42495,
    "c": 0.1692,
    "h": 269.4
  },
  "luminance": 0.07067
}

Semantic roles & 50–950 ramp

primary
#2C40A9
secondary
#C3B56E
accent
#C946E2
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2C40A9

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

Preview Lab → · Contrast checker → · Palette generator →

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