#2C40A8#2C40A8

#2C40A8 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.4% C 0.168 H 269.4°. Best body text is #FFFFFF at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#2C40A8
RGBrgb(44, 64, 168)
HSLhsl(230, 58%, 42%)
HSVhsv(230, 74%, 66%)
CMYKcmyk(73.8%, 61.9%, 0%, 34.1%)
CIE-LABlab(31.87, 29.21, -58.12)
CIE-LCHlch(31.87, 65.04, 296.68°)
OKLaboklab(42.41% -0.0017 -0.1678)
OKLCHoklch(42.41% 0.168 269.4)
XYZxyz(9.9376, 7.0284, 37.8711)
Luminance0.0703 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C40A8 #A8942C
analogous
#2C7EA8 #2C40A8 #562CA8
triadic
#2C40A8 #A82C40 #40A82C
tetradic
#2C40A8 #A82C7E #A8942C #2CA856
square
#2C40A8 #A82C7E #A8942C #2CA856
split-complementary
#2C40A8 #A8562C #7EA82C
monochromatic
#131B47 #1F2E78 #2C40A8 #435ACE #7484DB

Accessibility & contrast

On white

8.73
#2C40A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C40A8
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C40A8#FFFFFF#000000##FFFFFF
##2C40A81.008.732.418.73
#FFFFFF8.731.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c40a8;
/* rgb */ color: rgb(44, 64, 168);
/* oklch */ color: oklch(42.4% 0.168 269.4);
Tailwind
colors: {
  custom: {
    50: '#7774c3',
    500: '#2c40a8',
    950: '#000000',
  },
}
SCSS
$custom: #2c40a8;
$custom-light: #7774c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2c40a8",
  "rgb": {
    "r": 44,
    "g": 64,
    "b": 168
  },
  "hsl": {
    "h": 230.323,
    "s": 58.491,
    "l": 41.569
  },
  "oklch": {
    "l": 0.42406,
    "c": 0.16785,
    "h": 269.4
  },
  "luminance": 0.07029
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2C40A8

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

Preview Lab → · Contrast checker → · Palette generator →

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