#2C40BB#2C40BB

#2C40BB is a dark, vivid blue. Relative luminance 0.078; OKLCH L 44.1% C 0.193 H 269.3°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#2C40BB
RGBrgb(44, 64, 187)
HSLhsl(232, 62%, 45%)
HSVhsv(232, 76%, 73%)
CMYKcmyk(76.5%, 65.8%, 0%, 26.7%)
CIE-LABlab(33.54, 36.17, -66.68)
CIE-LCHlch(33.54, 75.86, 298.48°)
OKLaboklab(44.15% -0.0025 -0.1929)
OKLCHoklch(44.15% 0.193 269.3)
XYZxyz(11.8387, 7.7888, 47.8835)
Luminance0.0779 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C40BB #BBA72C
analogous
#2C88BB #2C40BB #5F2CBB
triadic
#2C40BB #BB2C40 #40BB2C
tetradic
#2C40BB #BB2C88 #BBA72C #2CBB5F
square
#2C40BB #BB2C88 #BBA72C #2CBB5F
split-complementary
#2C40BB #BB5F2C #88BB2C
monochromatic
#151E58 #202F89 #2C40BB #4F62D6 #808EE1

Accessibility & contrast

On white

8.21
#2C40BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#2C40BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C40BB
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C40BB#FFFFFF#000000##FFFFFF
##2C40BB1.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BF
Deuteranopia (green-blind)
#0048B9
Tritanopia (blue-blind)
#006178
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2c40bb;
/* rgb */ color: rgb(44, 64, 187);
/* oklch */ color: oklch(44.1% 0.193 269.3);
Tailwind
colors: {
  custom: {
    50: '#7c75d1',
    500: '#2c40bb',
    950: '#000000',
  },
}
SCSS
$custom: #2c40bb;
$custom-light: #7c75d1;
$custom-dark: #000000;
JSON
{
  "hex": "#2c40bb",
  "rgb": {
    "r": 44,
    "g": 64,
    "b": 187
  },
  "hsl": {
    "h": 231.608,
    "s": 61.905,
    "l": 45.294
  },
  "oklch": {
    "l": 0.44146,
    "c": 0.19295,
    "h": 269.3
  },
  "luminance": 0.0779
}

Semantic roles & 50–950 ramp

primary
#2C40BB
secondary
#CABF79
accent
#CE43E5
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0814
muted
#7C7B82

Preview Lab

Preview with #2C40BB

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

Preview Lab → · Contrast checker → · Palette generator →

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