#2C40B6#2C40B6

#2C40B6 is a dark, vivid blue. Relative luminance 0.076; OKLCH L 43.7% C 0.186 H 269.3°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#2C40B6
RGBrgb(44, 64, 182)
HSLhsl(231, 61%, 44%)
HSVhsv(231, 76%, 71%)
CMYKcmyk(75.8%, 64.8%, 0%, 28.6%)
CIE-LABlab(33.09, 34.36, -64.46)
CIE-LCHlch(33.09, 73.05, 298.06°)
OKLaboklab(43.68% -0.0022 -0.1864)
OKLCHoklch(43.68% 0.186 269.3)
XYZxyz(11.3127, 7.5784, 45.1135)
Luminance0.0758 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C40B6 #B6A22C
analogous
#2C85B6 #2C40B6 #5D2CB6
triadic
#2C40B6 #B62C40 #40B62C
tetradic
#2C40B6 #B62C85 #B6A22C #2CB65D
square
#2C40B6 #B62C85 #B6A22C #2CB65D
split-complementary
#2C40B6 #B65D2C #85B62C
monochromatic
#141D53 #202F85 #2C40B6 #4C5FD4 #7D8BE0

Accessibility & contrast

On white

8.35
#2C40B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#2C40B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C40B6
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C40B6#FFFFFF#000000##FFFFFF
##2C40B61.008.352.528.35
#FFFFFF8.351.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BA
Deuteranopia (green-blind)
#0047B4
Tritanopia (blue-blind)
#005F75
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2c40b6;
/* rgb */ color: rgb(44, 64, 182);
/* oklch */ color: oklch(43.7% 0.186 269.3);
Tailwind
colors: {
  custom: {
    50: '#7b75cd',
    500: '#2c40b6',
    950: '#000000',
  },
}
SCSS
$custom: #2c40b6;
$custom-light: #7b75cd;
$custom-dark: #000000;
JSON
{
  "hex": "#2c40b6",
  "rgb": {
    "r": 44,
    "g": 64,
    "b": 182
  },
  "hsl": {
    "h": 231.304,
    "s": 61.062,
    "l": 44.314
  },
  "oklch": {
    "l": 0.43679,
    "c": 0.18646,
    "h": 269.3
  },
  "luminance": 0.0758
}

Semantic roles & 50–950 ramp

primary
#2C40B6
secondary
#C8BC76
accent
#CD44E4
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0814
muted
#7C7B82

Preview Lab

Preview with #2C40B6

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

Preview Lab → · Contrast checker → · Palette generator →

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