#2C40A0#2C40A0

#2C40A0 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.7% C 0.157 H 269.4°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#2C40A0
RGBrgb(44, 64, 160)
HSLhsl(230, 57%, 40%)
HSVhsv(230, 73%, 63%)
CMYKcmyk(72.5%, 60%, 0%, 37.3%)
CIE-LABlab(31.21, 26.22, -54.38)
CIE-LCHlch(31.21, 60.38, 295.74°)
OKLaboklab(41.71% -0.0017 -0.1569)
OKLCHoklch(41.71% 0.157 269.4)
XYZxyz(9.2151, 6.7394, 34.0661)
Luminance0.0674 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C40A0 #A08C2C
analogous
#2C7AA0 #2C40A0 #522CA0
triadic
#2C40A0 #A02C40 #40A02C
tetradic
#2C40A0 #A02C7A #A08C2C #2CA052
square
#2C40A0 #A02C7A #A08C2C #2CA052
split-complementary
#2C40A0 #A0522C #7AA02C
monochromatic
#121A40 #1F2D70 #2C40A0 #3F57CA #6F81D7

Accessibility & contrast

On white

8.94
#2C40A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#2C40A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C40A0
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C40A0#FFFFFF#000000##FFFFFF
##2C40A01.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA3
Deuteranopia (green-blind)
#00449E
Tritanopia (blue-blind)
#005869
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2c40a0;
/* rgb */ color: rgb(44, 64, 160);
/* oklch */ color: oklch(41.7% 0.157 269.4);
Tailwind
colors: {
  custom: {
    50: '#7574bd',
    500: '#2c40a0',
    950: '#000000',
  },
}
SCSS
$custom: #2c40a0;
$custom-light: #7574bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2c40a0",
  "rgb": {
    "r": 44,
    "g": 64,
    "b": 160
  },
  "hsl": {
    "h": 229.655,
    "s": 56.863,
    "l": 40
  },
  "oklch": {
    "l": 0.41705,
    "c": 0.1569,
    "h": 269.4
  },
  "luminance": 0.0674
}

Semantic roles & 50–950 ramp

primary
#2C40A0
secondary
#BFB069
accent
#C648E0
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2C40A0

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

Preview Lab → · Contrast checker → · Palette generator →

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